diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-03-19 12:03:30 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-03-19 12:03:30 +0000 |
commit | 00fec46c1794e4134c41a5b42ea438b2911c32ac (patch) | |
tree | 87766bbf882f8da88fccf4bfd57f1d2b40bfcfbd /libc/sysdeps | |
parent | 909c7fda1f5c91d91f766971f0734f4d4a2b08d5 (diff) |
Based on a patch from Alexandre Oliva, allow uClibc to compile
with __NR_mmap is not available (i.e. only __NR_mmap2)
Diffstat (limited to 'libc/sysdeps')
-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 |