Index: sysdeps/nacl/sysdep.h |
diff --git a/sysdeps/nacl/sysdep.h b/sysdeps/nacl/sysdep.h |
index e5ba778812fe882970cfcd82b71d25aeec26dbb5..6947f8f24bf74cfbada9e93284f51774c871c179 100644 |
--- a/sysdeps/nacl/sysdep.h |
+++ b/sysdeps/nacl/sysdep.h |
@@ -972,9 +972,9 @@ INTERNAL_SYSCALL_modify_ldt_3 (int *err, int func, void *ptr, |
} |
__extern_always_inline int |
-INTERNAL_SYSCALL_mprotect_3 (int *err, const void *addr, size_t len, int prot) |
+INTERNAL_SYSCALL_mprotect_3 (int *err, void *addr, size_t len, int prot) |
{ |
- *err = (38 /* ENOSYS */); |
+ *err = __nacl_irt_mprotect (addr, len, prot); |
return 0; |
} |