summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/sysdeps/linux/common/mremap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/mremap.c b/libc/sysdeps/linux/common/mremap.c
index 5499c0975..038cac667 100644
--- a/libc/sysdeps/linux/common/mremap.c
+++ b/libc/sysdeps/linux/common/mremap.c
@@ -9,6 +9,9 @@
#include "syscalls.h"
#include <unistd.h>
+
+#ifdef __NR_mremap
+
#define mremap _hidemremap
#include <sys/mman.h>
#undef mremap
@@ -19,3 +22,5 @@ libc_hidden_proto(mremap)
_syscall5(void *, mremap, void *, old_address, size_t, old_size, size_t,
new_size, int, may_move, void *, new_address);
libc_hidden_def(mremap)
+
+#endif