[git commit master 1/1] msync: skip if syscall is missing

Mike Frysinger vapier at gentoo.org
Tue Jul 27 01:39:07 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=57e1e47345c1c7e924fdc66c95a1532783191503
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Some arches skip the msync syscall as it is useless (like nommu).  So
don't require it to build.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 libc/sysdeps/linux/common/msync.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libc/sysdeps/linux/common/msync.c b/libc/sysdeps/linux/common/msync.c
index 2629bd4..844dbaa 100644
--- a/libc/sysdeps/linux/common/msync.c
+++ b/libc/sysdeps/linux/common/msync.c
@@ -11,6 +11,8 @@
 #include <unistd.h>
 #include <sys/mman.h>
 
+#ifdef __NR_msync
+
 #ifdef __UCLIBC_HAS_THREADS_NATIVE__
 #include <sysdep-cancel.h>
 #else
@@ -39,3 +41,5 @@ int __libc_msync(void * addr, size_t length, int flags)
 #endif
 }
 weak_alias(__libc_msync,msync)
+
+#endif
-- 
1.7.1



More information about the uClibc-cvs mailing list