diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-12-08 03:39:59 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-12-08 03:39:59 +0000 |
commit | 13797adfc5c6a0bb8492942c948c34ac5d58c347 (patch) | |
tree | b1877a7b96df340f1775688886ab802539972ec6 | |
parent | e6c29763f13b1c4f1f9b090932c49963edf153c3 (diff) |
if __NR_mprotect does not exist, dont try and create a syscall for it
-rw-r--r-- | libc/sysdeps/linux/common/mprotect.c | 3 |
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 |