X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffreading.c;h=b08fbeaf3c1c170ee188a41c0980b00cc30743fd;hb=665a8a0fca396d67dfed85580a48178df8b4a60e;hp=e201b8975226fb2714420905db1a37a3dd8eab12;hpb=284866a44c1115e8786a23c7a50d3e710fc75afd;p=gnulib.git diff --git a/lib/freading.c b/lib/freading.c index e201b8975..b08fbeaf3 100644 --- a/lib/freading.c +++ b/lib/freading.c @@ -31,7 +31,7 @@ freading (FILE *fp) /* Most systems provide FILE as a struct and the necessary bitmask in , because they need it for implementing getc() and putc() as fast macros. */ -#if defined _IO_ferror_unlocked || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Linux libc5 */ +#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ return ((fp->_flags & _IO_NO_WRITES) != 0 || ((fp->_flags & (_IO_NO_READS | _IO_CURRENTLY_PUTTING)) == 0 && fp->_IO_read_base != NULL));