summaryrefslogtreecommitdiff
path: root/src/mman/mprotect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mman/mprotect.c')
-rw-r--r--src/mman/mprotect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mman/mprotect.c b/src/mman/mprotect.c
index 11d5e231..1db2aea2 100644
--- a/src/mman/mprotect.c
+++ b/src/mman/mprotect.c
@@ -3,5 +3,5 @@
int mprotect(void *addr, size_t len, int prot)
{
- return syscall3(__NR_mprotect, (long)addr, len, prot);
+ return syscall(SYS_mprotect, addr, len, prot);
}