summarylogtreecommitdiffstats
path: root/hotfix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'hotfix.patch')
-rw-r--r--hotfix.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/hotfix.patch b/hotfix.patch
new file mode 100644
index 000000000000..c4e145c15163
--- /dev/null
+++ b/hotfix.patch
@@ -0,0 +1,26 @@
+--- bison-2.7.1/lib/fseterr.c 2013-04-08 11:18:57.000000000 +0200
++++ bison-2.7.1/lib/fseterr.c 2019-05-10 06:29:55.890136219 +0200
+@@ -29,7 +29,7 @@
+ /* 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_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
++#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+ fp->_flags |= _IO_ERR_SEEN;
+ #elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin */
+ fp_->_flags |= __SERR;
+--- bison-2.7.1/lib/stdio-impl.h 2013-04-08 11:18:57.000000000 +0200
++++ bison-2.7.1/lib/stdio-impl.h 2019-05-10 06:28:35.936803554 +0200
+@@ -18,6 +18,12 @@
+ the same implementation of stdio extension API, except that some fields
+ have different naming conventions, or their access requires some casts. */
+
++/* Glibc 2.28 made _IO_IN_BACKUP private. For now, work around this
++ problem by defining it ourselves. FIXME: Do not rely on glibc
++ internals. */
++#if !defined _IO_IN_BACKUP && defined _IO_EOF_SEEN
++# define _IO_IN_BACKUP 0x100
++#endif
+
+ /* BSD stdio derived implementations. */
+