aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emacs/23.4/30_all_glibc-2.28.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/emacs/23.4/30_all_glibc-2.28.patch b/emacs/23.4/30_all_glibc-2.28.patch
new file mode 100644
index 0000000..e62239f
--- /dev/null
+++ b/emacs/23.4/30_all_glibc-2.28.patch
@@ -0,0 +1,15 @@
+Fix compilation with glibc-2.28.
+https://bugs.gentoo.org/681904
+
+--- emacs-23.4-orig/src/s/gnu-linux.h
++++ emacs-23.4/src/s/gnu-linux.h
+@@ -150,7 +150,8 @@
+
+ #ifdef emacs
+ #include <stdio.h> /* Get the definition of _IO_STDIO_H. */
+-#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM)
++#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM) \
++ || defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1
+ /* new C libio names */
+ #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
+ ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)