diff options
Diffstat (limited to 'lib/fpurge.c')
-rw-r--r-- | lib/fpurge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fpurge.c b/lib/fpurge.c index c82d8012e7..eccfa0ea1f 100644 --- a/lib/fpurge.c +++ b/lib/fpurge.c @@ -61,7 +61,7 @@ fpurge (FILE *fp) /* Most systems provide FILE as a struct and the necessary bitmask in <stdio.h>, 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 */ fp->_IO_read_end = fp->_IO_read_ptr; fp->_IO_write_ptr = fp->_IO_write_base; /* Avoid memory leak when there is an active ungetc buffer. */ |