[uClibc-cvs] uClibc/libc/sysdeps/linux/mips _mmap.c,1.1,1.2

Erik Andersen andersen at codepoet.org
Wed Feb 26 02:13:59 UTC 2003


Update of /var/cvs/uClibc/libc/sysdeps/linux/mips
In directory winder:/tmp/cvs-serv29054/libc/sysdeps/linux/mips

Modified Files:
	_mmap.c 
Log Message:
Prefer mmap2 for mips when available.  Fix the mmap test.
 -Erik


Index: _mmap.c
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/mips/_mmap.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- _mmap.c	22 Feb 2002 00:10:00 -0000	1.1
+++ _mmap.c	26 Feb 2003 02:13:55 -0000	1.2
@@ -4,5 +4,10 @@
 #include <sys/mman.h>
 #include <sys/syscall.h>
 
+#ifdef __NR_mmap2
+# undef __NR_mmap
+# define __NR_mmap __NR_mmap2
+#endif
+
 _syscall6 (__ptr_t, mmap, __ptr_t, addr, size_t, len, int, prot,
 	   int, flags, int, fd, __off_t, offset);




More information about the uClibc-cvs mailing list