From 434e9e3cba0f57fca25e1ed2bc4444fac59e4fef Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 18 Jul 2007 22:31:31 +0000 Subject: include/sys/mman.h says that msync exists only on MMU. Make msync.c agree on this. --- libc/sysdeps/linux/common/msync.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/sysdeps/linux/common') diff --git a/libc/sysdeps/linux/common/msync.c b/libc/sysdeps/linux/common/msync.c index 4ad47bc42..352fb4903 100644 --- a/libc/sysdeps/linux/common/msync.c +++ b/libc/sysdeps/linux/common/msync.c @@ -14,9 +14,13 @@ #include +#ifdef __ARCH_USE_MMU__ + 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 + +#endif -- cgit v1.2.3