summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-12-08 16:55:54 +0000
committerMike Frysinger <vapier@gentoo.org>2006-12-08 16:55:54 +0000
commite7a8643a736e991fd0045384f6ec5859933f60d1 (patch)
treee865145842cd6ad27bbb8faec3c38350edd0f43d
parent13797adfc5c6a0bb8492942c948c34ac5d58c347 (diff)
only define mremap() if the syscall exists
-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