OSDN Git Service

enable mprotect() regardless of MMU as some systems have MPUs which allows memory...
authorMike Frysinger <vapier@gentoo.org>
Mon, 16 Mar 2009 06:16:15 +0000 (06:16 -0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 16 Mar 2009 06:16:15 +0000 (06:16 -0000)
libc/sysdeps/linux/common/mprotect.c

index a0e7610..d60fc04 100644 (file)
@@ -10,6 +10,6 @@
 #include <sys/syscall.h>
 #include <sys/mman.h>
 
-#if defined __ARCH_USE_MMU__ && defined __NR_mprotect
+#if defined __NR_mprotect
 _syscall3(int, mprotect, void *, addr, size_t, len, int, prot)
 #endif