summaryrefslogtreecommitdiff
blob: 1867a4c22858482f08626763f116d733c42a7a3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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, [])