OSDN Git Service

if __NR_mprotect does not exist, dont try and create a syscall for it
authorMike Frysinger <vapier@gentoo.org>
Fri, 8 Dec 2006 03:39:59 +0000 (03:39 -0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 8 Dec 2006 03:39:59 +0000 (03:39 -0000)
libc/sysdeps/linux/common/mprotect.c

index 7eab338..5edabe0 100644 (file)
@@ -9,4 +9,7 @@
 
 #include "syscalls.h"
 #include <sys/mman.h>
+
+#ifdef __NR_mprotect
 _syscall3(int, mprotect, void *, addr, size_t, len, int, prot);
+#endif