diff --git a/configure.ac b/configure.ac index 031be4a7d54654a606b80763daaa3e4c35b217e5..2831e599b0a47191a0001fc6eab6ab7b5967a84f 100644 --- a/configure.ac +++ b/configure.ac @@ -79,7 +79,7 @@ GTK_DOC_CHECK([1.15],[--flavour no-tmpl]) # Functions, and headers -AC_CHECK_FUNCS(atexit mprotect sysconf getpagesize mmap isatty newlocale strtod_l setlinebuf) +AC_CHECK_FUNCS(atexit mprotect sysconf getpagesize mmap isatty newlocale strtod_l) save_libs="$LIBS" LIBS="$LIBS -lm" diff --git a/util/options.cc b/util/options.cc index db7115cf57da699ff533484619e2d8921b9a59e1..027d0b39623d5a113d3a09ddc9c5b79e735afb14 100644 --- a/util/options.cc +++ b/util/options.cc @@ -803,12 +803,6 @@ text_options_t::get_line (unsigned int *len) gs = g_string_new (nullptr); } -#ifdef HAVE_SETLINEBUF - setlinebuf (fp); -#else - setvbuf(fp, NULL, _IOLBF, BUFSIZ); -#endif - g_string_set_size (gs, 0); char buf[BUFSIZ]; while (fgets (buf, sizeof (buf), fp)) { @@ -846,12 +840,6 @@ output_options_t::get_file_handle (void) fail (false, "Cannot open output file `%s': %s", g_filename_display_name (output_file), strerror (errno)); -#ifdef HAVE_SETLINEBUF - setlinebuf (fp); -#else - setvbuf(fp, NULL, _IOLBF, BUFSIZ); -#endif - return fp; }