summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-editors/emacs/files/emacs-24.3-glibc-2.28.patch')
-rw-r--r--app-editors/emacs/files/emacs-24.3-glibc-2.28.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/app-editors/emacs/files/emacs-24.3-glibc-2.28.patch b/app-editors/emacs/files/emacs-24.3-glibc-2.28.patch
new file mode 100644
index 0000000..1867a4c
--- /dev/null
+++ b/app-editors/emacs/files/emacs-24.3-glibc-2.28.patch
@@ -0,0 +1,15 @@
+Fix compilation with glibc-2.28.
+https://bugs.gentoo.org/681904
+
+--- emacs-24.3-orig/configure.ac
++++ emacs-24.3/configure.ac
+@@ -3597,7 +3597,8 @@
+ dnl since the preprocessed output is accessible in "conftest.i".
+ AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[
+ #include <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
+ # error "stdio definitions not found"
+ #endif
+ ]], [[]])], emacs_pending_output=new, [])