mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-31 23:11:09 +00:00
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:
parent
3fad53ec87
commit
182d6096fe
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user