olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

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

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