Browse Source

enable mprotect() regardless of MMU as some systems have MPUs which allows memory protection

Mike Frysinger 15 years ago
parent
commit
9889c8791b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/sysdeps/linux/common/mprotect.c

+ 1 - 1
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