diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-18 22:31:31 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-18 22:31:31 +0000 |
commit | 434e9e3cba0f57fca25e1ed2bc4444fac59e4fef (patch) | |
tree | ffca2fa6d826662c19dbdb33a1acdc79ea17912b /libc/sysdeps | |
parent | 373fe15a8a4c5b974717742e5c61091e02130c3c (diff) |
include/sys/mman.h says that msync exists only on MMU.
Make msync.c agree on this.
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 4ad47bc42..352fb4903 100644 --- a/libc/sysdeps/linux/common/msync.c +++ b/libc/sysdeps/linux/common/msync.c @@ -14,9 +14,13 @@ #include <sys/mman.h> +#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 |