summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2019-03-29 07:47:37 +0100
committerUlrich Müller <ulm@gentoo.org>2019-03-29 07:47:37 +0100
commit9f684bdb4781e72cd4c8a94ff40806a8a0a4c6a7 (patch)
tree8836f965d02c7ba11dca3238da48f3c36995b5f8
parentSupport ImageMagick version 7, bug 665058. (diff)
downloademacs-patches-9f684bdb4781e72cd4c8a94ff40806a8a0a4c6a7.tar.gz
emacs-patches-9f684bdb4781e72cd4c8a94ff40806a8a0a4c6a7.tar.bz2
emacs-patches-9f684bdb4781e72cd4c8a94ff40806a8a0a4c6a7.zip
Fix compilation with glibc-2.28, bug 681904.emacs-23.4-patches-22
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-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)