summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2006-02-23 16:04:10 +0000
committerPeter Kjellerstedt <peter.kjellerstedt@axis.com>2006-02-23 16:04:10 +0000
commit066a5e3e496a773d87b51f62f8e16557fee1e339 (patch)
tree9260255d1cb41fd00d81a83601519d743df724e9
parent519e5c203b0c30f37f198858bc8989dc69e46809 (diff)
* Include sys/syscall.h so __NR_mmap2 and _syscall6 actually have a
chance of being defined (the lack of this include probably means that the common mmap64() function has never worked as intended...) * Include bits/uClibc_page.h to get MMAP2_PAGE_SHIFT for architectures that need to define it.
-rw-r--r--libc/sysdeps/linux/common/mmap64.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/mmap64.c b/libc/sysdeps/linux/common/mmap64.c
index 3c99769d3..0ae0e7ebc 100644
--- a/libc/sysdeps/linux/common/mmap64.c
+++ b/libc/sysdeps/linux/common/mmap64.c
@@ -9,6 +9,8 @@
#include <errno.h>
#include <unistd.h>
#include <sys/mman.h>
+#include <sys/syscall.h>
+#include <bits/uClibc_page.h>
#ifdef __UCLIBC_HAS_LFS__