svn commit: trunk/uClibc/libc/sysdeps/linux/common

vda at uclibc.org vda at uclibc.org
Wed Jul 18 22:31:32 UTC 2007


Author: vda
Date: 2007-07-18 15:31:31 -0700 (Wed, 18 Jul 2007)
New Revision: 19162

Log:
include/sys/mman.h says that msync exists only on MMU.
Make msync.c agree on this.



Modified:
   trunk/uClibc/libc/sysdeps/linux/common/msync.c


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/msync.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/msync.c	2007-07-18 22:30:43 UTC (rev 19161)
+++ trunk/uClibc/libc/sysdeps/linux/common/msync.c	2007-07-18 22:31:31 UTC (rev 19162)
@@ -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




More information about the uClibc-cvs mailing list