From 9f684bdb4781e72cd4c8a94ff40806a8a0a4c6a7 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Fri, 29 Mar 2019 07:47:37 +0100 Subject: Fix compilation with glibc-2.28, bug 681904. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ulrich Müller --- emacs/23.4/30_all_glibc-2.28.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 emacs/23.4/30_all_glibc-2.28.patch 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 /* 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) -- cgit v1.2.3-65-gdbad