diff options
Diffstat (limited to 'libc')
-rw-r--r-- | libc/sysdeps/linux/common/mmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/mmap.c b/libc/sysdeps/linux/common/mmap.c index 36b98fa70..e7d67e2e9 100644 --- a/libc/sysdeps/linux/common/mmap.c +++ b/libc/sysdeps/linux/common/mmap.c @@ -11,6 +11,7 @@ #include <unistd.h> #include <sys/mman.h> +#ifdef __NR_mmap #define __NR__mmap __NR_mmap _syscall1(__ptr_t, _mmap, unsigned long *, buffer); __ptr_t mmap(__ptr_t addr, size_t len, int prot, @@ -26,3 +27,4 @@ __ptr_t mmap(__ptr_t addr, size_t len, int prot, buffer[5] = (unsigned long) offset; return (__ptr_t) _mmap(buffer); } +#endif |