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