Blame SOURCES/bison-3.0.4-gnulib-fseterr.patch
|
|
89d4b4 |
commit 4af4a4a71827c0bc5e0ec67af23edef4f15cee8e
|
|
|
89d4b4 |
Author: Paul Eggert <address@hidden>
|
|
|
89d4b4 |
Date: Mon Mar 5 10:56:29 2018 -0800
|
|
|
89d4b4 |
|
|
|
89d4b4 |
fflush: adjust to glibc 2.28 libio.h removal
|
|
|
89d4b4 |
(Only part of this commit was backported as needed.)
|
|
|
89d4b4 |
|
|
|
89d4b4 |
diff -Nrup a/lib/fseterr.c b/lib/fseterr.c
|
|
|
89d4b4 |
--- a/lib/fseterr.c 2015-01-04 11:43:50.000000000 -0500
|
|
|
89d4b4 |
+++ b/lib/fseterr.c 2018-08-06 01:27:29.869844228 -0400
|
|
|
89d4b4 |
@@ -29,7 +29,7 @@ fseterr (FILE *fp)
|
|
|
89d4b4 |
/* Most systems provide FILE as a struct and the necessary bitmask in
|
|
|
89d4b4 |
<stdio.h>, because they need it for implementing getc() and putc() as
|
|
|
89d4b4 |
fast macros. */
|
|
|
89d4b4 |
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
|
|
|
89d4b4 |
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
|
|
|
89d4b4 |
fp->_flags |= _IO_ERR_SEEN;
|
|
|
89d4b4 |
#elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin */
|
|
|
89d4b4 |
fp_->_flags |= __SERR;
|