diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-12-08 18:47:59 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-12-08 18:47:59 +0000 |
commit | 1f9d3f3d860df1f13858c8b6eb45c329180ad630 (patch) | |
tree | 79b5e5fa8a9255417f377dadee3d587395b04973 /libc | |
parent | e7a8643a736e991fd0045384f6ec5859933f60d1 (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.c | 5 |
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 |