Selaa lähdekoodia

* 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 vuotta sitten
vanhempi
commit
066a5e3e49
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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__