summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-12-08 18:47:59 +0000
committerMike Frysinger <vapier@gentoo.org>2006-12-08 18:47:59 +0000
commit1f9d3f3d860df1f13858c8b6eb45c329180ad630 (patch)
tree79b5e5fa8a9255417f377dadee3d587395b04973 /libc
parente7a8643a736e991fd0045384f6ec5859933f60d1 (diff)
if __NR_msync does not exist, dont try and create a syscall for it
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/msync.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/msync.c b/libc/sysdeps/linux/common/msync.c
index 494d4afd3..1773bc33a 100644
--- a/libc/sysdeps/linux/common/msync.c
+++ b/libc/sysdeps/linux/common/msync.c
@@ -9,9 +9,14 @@
#include "syscalls.h"
#include <unistd.h>
+
+#ifdef __NR_msync
+
#include <sys/mman.h>
extern __typeof(msync) __libc_msync;
#define __NR___libc_msync __NR_msync
_syscall3(int, __libc_msync, void *, addr, size_t, length, int, flags);
weak_alias(__libc_msync,msync)
+
+#endif