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

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