[uClibc-cvs] uClibc/libc/sysdeps/linux/common mmap.c,1.1,1.2
Erik Andersen
andersen at uclibc.org
Fri Mar 19 12:03:32 UTC 2004
Update of /var/cvs/uClibc/libc/sysdeps/linux/common
In directory nail:/tmp/cvs-serv25760/libc/sysdeps/linux/common
Modified Files:
mmap.c
Log Message:
Based on a patch from Alexandre Oliva, allow uClibc to compile
with __NR_mmap is not available (i.e. only __NR_mmap2)
Index: mmap.c
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/common/mmap.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/mmap.c 21 Jan 2004 23:27:40 -0000 1.1
+++ b/mmap.c 19 Mar 2004 12:03:30 -0000 1.2
@@ -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 @@
buffer[5] = (unsigned long) offset;
return (__ptr_t) _mmap(buffer);
}
+#endif
More information about the uClibc-cvs
mailing list