summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-12-08 03:39:59 +0000
committerMike Frysinger <vapier@gentoo.org>2006-12-08 03:39:59 +0000
commit13797adfc5c6a0bb8492942c948c34ac5d58c347 (patch)
treeb1877a7b96df340f1775688886ab802539972ec6 /libc/sysdeps/linux
parente6c29763f13b1c4f1f9b090932c49963edf153c3 (diff)
if __NR_mprotect does not exist, dont try and create a syscall for it
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/mprotect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/mprotect.c b/libc/sysdeps/linux/common/mprotect.c
index 7eab338d0..5edabe0ff 100644
--- a/libc/sysdeps/linux/common/mprotect.c
+++ b/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