summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/msync.c4
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