diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-07-26 21:15:55 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-07-26 21:15:55 -0400 |
commit | 57e1e47345c1c7e924fdc66c95a1532783191503 (patch) | |
tree | 9c7d641b25412ead14da541b88617884181b433b /libc/sysdeps | |
parent | 7f136d048bf25d4f97bb90c294979a22d0efc5d8 (diff) |
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 <vapier@gentoo.org>
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | 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 2629bd4aa..844dbaa89 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 |