Pārlūkot izejas kodu

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

Mike Frysinger 15 gadi atpakaļ
vecāks
revīzija
9889c8791b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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