diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-07-29 11:35:37 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-08-05 04:38:56 -0400 |
commit | 182d6096fe76b3d63b1151090cd07e60eca39302 (patch) | |
tree | 93c589dd269c8ca2ada8e053a4e698533fca37b0 /sysdeps/unix/sysv/linux/mmap64.c | |
parent | nptl: fix set-but-unused warning w/_STACK_GROWS_UP (diff) | |
download | glibc-182d6096fe76b3d63b1151090cd07e60eca39302.tar.gz glibc-182d6096fe76b3d63b1151090cd07e60eca39302.tar.bz2 glibc-182d6096fe76b3d63b1151090cd07e60eca39302.zip |
mmap64: fix undef warnings
The only target that defines this is m68k, so move the existing fallback
define up to avoid warnings on other systems.
Diffstat (limited to 'sysdeps/unix/sysv/linux/mmap64.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/mmap64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/mmap64.c b/sysdeps/unix/sysv/linux/mmap64.c index a8da641d2b..0b160b6f6b 100644 --- a/sysdeps/unix/sysv/linux/mmap64.c +++ b/sysdeps/unix/sysv/linux/mmap64.c @@ -25,12 +25,12 @@ #include <sys/syscall.h> /* This is always 12, even on architectures where PAGE_SHIFT != 12. */ +#ifndef MMAP2_PAGE_SHIFT +# define MMAP2_PAGE_SHIFT 12 +#endif #if MMAP2_PAGE_SHIFT == -1 static int page_shift; #else -# ifndef MMAP2_PAGE_SHIFT -# define MMAP2_PAGE_SHIFT 12 -# endif #define page_shift MMAP2_PAGE_SHIFT #endif |