summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/mprotect.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-03-16 06:16:15 +0000
committerMike Frysinger <vapier@gentoo.org>2009-03-16 06:16:15 +0000
commit9889c8791b5277e79af660e0c722459ff5bc3e65 (patch)
tree5d0b804b32bd65d2f89a9f912e2a8f05eb20eb35 /libc/sysdeps/linux/common/mprotect.c
parent67a247e9f0f3ce2a6aa5063e46dfcc9b7a421b67 (diff)
enable mprotect() regardless of MMU as some systems have MPUs which allows memory protection
Diffstat (limited to 'libc/sysdeps/linux/common/mprotect.c')
-rw-r--r--libc/sysdeps/linux/common/mprotect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/mprotect.c b/libc/sysdeps/linux/common/mprotect.c
index a0e7610fd..d60fc04d6 100644
--- a/libc/sysdeps/linux/common/mprotect.c
+++ b/libc/sysdeps/linux/common/mprotect.c
@@ -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