diff options
author | Bruno Haible <bruno@clisp.org> | 2008-04-17 02:01:23 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-04-17 02:01:23 +0200 |
commit | b3dc18436403d035a8d5676026bc2a9e95b5c021 (patch) | |
tree | e88610967eec4fa83b1b92a8cae2d5460bf78e36 /lib/fpurge.c | |
parent | b4ba39d43807fbafe342cc9a500491a3765726fb (diff) | |
download | gnulib-b3dc18436403d035a8d5676026bc2a9e95b5c021.tar.gz |
Add tentative support for Linux libc5.
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 05b58f2a70..f9409e5236 100644 --- a/lib/fpurge.c +++ b/lib/fpurge.c @@ -59,7 +59,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 libc, BeOS */ +# if defined _IO_ferror_unlocked || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, 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. */ |