Browse Source

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

Mike Frysinger 15 năm trước cách đây
mục cha
commit
9889c8791b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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