From 57e1e47345c1c7e924fdc66c95a1532783191503 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 26 Jul 2010 21:15:55 -0400 Subject: msync: skip if syscall is missing Some arches skip the msync syscall as it is useless (like nommu). So don't require it to build. Signed-off-by: Mike Frysinger --- libc/sysdeps/linux/common/msync.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/sysdeps/linux/common/msync.c') diff --git a/libc/sysdeps/linux/common/msync.c b/libc/sysdeps/linux/common/msync.c index 2629bd4aa..844dbaa89 100644 --- a/libc/sysdeps/linux/common/msync.c +++ b/libc/sysdeps/linux/common/msync.c @@ -11,6 +11,8 @@ #include #include +#ifdef __NR_msync + #ifdef __UCLIBC_HAS_THREADS_NATIVE__ #include #else @@ -39,3 +41,5 @@ int __libc_msync(void * addr, size_t length, int flags) #endif } weak_alias(__libc_msync,msync) + +#endif -- cgit v1.2.3