OSDN Git Service

include/sys/mman.h says that msync exists only on MMU.
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 18 Jul 2007 22:31:31 +0000 (22:31 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 18 Jul 2007 22:31:31 +0000 (22:31 -0000)
Make msync.c agree on this.

libc/sysdeps/linux/common/msync.c

index 4ad47bc..352fb49 100644 (file)
 
 #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