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

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