svn commit: trunk/uClibc/libc/sysdeps/linux/common

vapier at uclibc.org vapier at uclibc.org
Fri Dec 8 16:55:54 UTC 2006


Author: vapier
Date: 2006-12-08 08:55:54 -0800 (Fri, 08 Dec 2006)
New Revision: 16815

Log:
only define mremap() if the syscall exists

Modified:
   trunk/uClibc/libc/sysdeps/linux/common/mremap.c


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/mremap.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/mremap.c	2006-12-08 12:50:37 UTC (rev 16814)
+++ trunk/uClibc/libc/sysdeps/linux/common/mremap.c	2006-12-08 16:55:54 UTC (rev 16815)
@@ -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 @@
 _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




More information about the uClibc-cvs mailing list