From e7a8643a736e991fd0045384f6ec5859933f60d1 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 8 Dec 2006 16:55:54 +0000 Subject: only define mremap() if the syscall exists --- libc/sysdeps/linux/common/mremap.c | 5 +++++ 1 file changed, 5 insertions(+) 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 + +#ifdef __NR_mremap + #define mremap _hidemremap #include #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 -- cgit v1.2.3