summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/mprotect.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/mprotect.c')
-rw-r--r--libc/sysdeps/linux/common/mprotect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/mprotect.c b/libc/sysdeps/linux/common/mprotect.c
index a5e6920a5..7122f0f2f 100644
--- a/libc/sysdeps/linux/common/mprotect.c
+++ b/libc/sysdeps/linux/common/mprotect.c
@@ -10,6 +10,6 @@
#include <sys/syscall.h>
#include <sys/mman.h>
-#ifdef __NR_mprotect
+#if defined __ARCH_USE_MMU__ && defined __NR_mprotect
_syscall3(int, mprotect, void *, addr, size_t, len, int, prot);
#endif