浏览代码

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

Mike Frysinger 19 年之前
父节点
当前提交
13797adfc5
共有 1 个文件被更改,包括 3 次插入0 次删除
  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