From 00fec46c1794e4134c41a5b42ea438b2911c32ac Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 19 Mar 2004 12:03:30 +0000 Subject: Based on a patch from Alexandre Oliva, allow uClibc to compile with __NR_mmap is not available (i.e. only __NR_mmap2) --- libc/sysdeps/linux/common/mmap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc/sysdeps/linux') 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 #include +#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 -- cgit v1.2.3