X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Ffflush.m4;h=f796a55415d2a0744b7d594e6ad21aacb332aed1;hb=05552c43d21f272e927663aae4bc810e17d4d785;hp=fca7769be1e0289ee693ed0ccb0830612bfa8f7e;hpb=16332895663c60d815322830a027ec5f660e2639;p=gnulib.git diff --git a/m4/fflush.m4 b/m4/fflush.m4 index fca7769be..f796a5541 100755 --- a/m4/fflush.m4 +++ b/m4/fflush.m4 @@ -1,4 +1,4 @@ -#serial 3 +# fflush.m4 serial 4 # Copyright (C) 2007 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation @@ -20,9 +20,9 @@ AC_DEFUN([gl_FUNC_FFLUSH], #include #include ]], [[FILE *f = fopen ("conftest.txt", "r"); - char buffer[10]; + char buffer[10]; int fd = fileno (f); - if (!f || 0 > fd || fread (buffer, 1, 5, f) != 5) + if (!f || 0 > fd || fread (buffer, 1, 5, f) != 5) return 2; /* For deterministic results, ensure f read a bigger buffer. */ if (lseek (fd, 0, SEEK_CUR) == 5) @@ -48,9 +48,5 @@ AC_DEFUN([gl_REPLACE_FFLUSH], AC_LIBOBJ([fseeko]) AC_REQUIRE([gl_STDIO_H_DEFAULTS]) REPLACE_FFLUSH=1 - gl_CHECK_FSEEKO - if test $gl_cv_func_fseeko = yes; then - AC_DEFINE([HAVE_FSEEKO], 1, - [Define to 1 if you have the fseeko() function or macro.]) - fi + REPLACE_FSEEKO=1 ])