diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/fpending.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/fpending.c b/lib/fpending.c index 789f50e4e4b..7bc235deda2 100644 --- a/lib/fpending.c +++ b/lib/fpending.c | |||
| @@ -32,7 +32,8 @@ __fpending (FILE *fp) | |||
| 32 | /* Most systems provide FILE as a struct and the necessary bitmask in | 32 | /* Most systems provide FILE as a struct and the necessary bitmask in |
| 33 | <stdio.h>, because they need it for implementing getc() and putc() as | 33 | <stdio.h>, because they need it for implementing getc() and putc() as |
| 34 | fast macros. */ | 34 | fast macros. */ |
| 35 | #if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ | 35 | #if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 |
| 36 | /* GNU libc, BeOS, Haiku, Linux libc5 */ | ||
| 36 | return fp->_IO_write_ptr - fp->_IO_write_base; | 37 | return fp->_IO_write_ptr - fp->_IO_write_base; |
| 37 | #elif defined __sferror || defined __DragonFly__ || defined __ANDROID__ | 38 | #elif defined __sferror || defined __DragonFly__ || defined __ANDROID__ |
| 38 | /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ | 39 | /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ |