Browse Source

* 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.

Peter Kjellerstedt 19 years ago
parent
commit
066a5e3e49
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/sysdeps/linux/common/mmap64.c

+ 2 - 0
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__