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.
This commit is contained in:
Mike Frysinger 2015-07-29 11:35:37 -04:00
parent 3fad53ec87
commit 182d6096fe
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2015-08-05 Mike Frysinger <vapier@gentoo.org>
* sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
before first use.
2015-08-05 Mike Frysinger <vapier@gentoo.org>
* nptl/allocatestack.c (allocate_stack): Move stacktop decl down to

View File

@ -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