Browse Source

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

Mike Frysinger 19 years ago
parent
commit
13797adfc5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      libc/sysdeps/linux/common/mprotect.c

+ 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