Эх сурвалжийг харах

if __NR_mprotect does not exist, dont try and create a syscall for it

Mike Frysinger 19 жил өмнө
parent
commit
13797adfc5

+ 3 - 0
libc/sysdeps/linux/common/mprotect.c

@@ -9,4 +9,7 @@
 
 #include "syscalls.h"
 #include <sys/mman.h>
+
+#ifdef __NR_mprotect
 _syscall3(int, mprotect, void *, addr, size_t, len, int, prot);
+#endif