Blame SOURCES/glibc-rh1505492-undef-53.patch

c6d234
commit 182d6096fe76b3d63b1151090cd07e60eca39302
c6d234
Author: Mike Frysinger <vapier@gentoo.org>
c6d234
Date:   Wed Jul 29 11:35:37 2015 -0400
c6d234
c6d234
    mmap64: fix undef warnings
c6d234
    
c6d234
    The only target that defines this is m68k, so move the existing fallback
c6d234
    define up to avoid warnings on other systems.
c6d234
c6d234
diff --git a/sysdeps/unix/sysv/linux/mmap64.c b/sysdeps/unix/sysv/linux/mmap64.c
c6d234
index 2c8304d860f19d58..fcaa6be1f41b3ffd 100644
c6d234
--- a/sysdeps/unix/sysv/linux/mmap64.c
c6d234
+++ b/sysdeps/unix/sysv/linux/mmap64.c
c6d234
@@ -26,12 +26,12 @@
c6d234
 #include <kernel-features.h>
c6d234
 
c6d234
 /* This is always 12, even on architectures where PAGE_SHIFT != 12.  */
c6d234
+#ifndef MMAP2_PAGE_SHIFT
c6d234
+# define MMAP2_PAGE_SHIFT 12
c6d234
+#endif
c6d234
 #if MMAP2_PAGE_SHIFT == -1
c6d234
 static int page_shift;
c6d234
 #else
c6d234
-# ifndef MMAP2_PAGE_SHIFT
c6d234
-#  define MMAP2_PAGE_SHIFT 12
c6d234
-# endif
c6d234
 #define page_shift MMAP2_PAGE_SHIFT
c6d234
 #endif
c6d234