diff options
| author | Paul Eggert | 2018-03-08 16:50:06 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-03-08 16:50:41 -0800 |
| commit | f0c590b857415e94a8ed9ded0e9ba2f91ea2a3c7 (patch) | |
| tree | 297f2e91bd48fcb2d98ce5672adbc18ef47a2690 /lib | |
| parent | 6bc78d5b16b6bc56f3ef401c519de6ff2fff3111 (diff) | |
| download | emacs-f0c590b857415e94a8ed9ded0e9ba2f91ea2a3c7.tar.gz emacs-f0c590b857415e94a8ed9ded0e9ba2f91ea2a3c7.zip | |
Update from Gnulib
This includes:
2018-03-08 fflush: be more paranoid about libio.h change
* lib/fpending.c: Copy from Gnulib.
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 */ |