svn commit: trunk/uClibc/libpthread/linuxthreads.old
lethal at uclibc.org
lethal at uclibc.org
Thu Aug 21 09:01:36 UTC 2008
Author: lethal
Date: 2008-08-21 02:01:36 -0700 (Thu, 21 Aug 2008)
New Revision: 23134
Log:
Fix up an msync() redefinition for linuxthreads + nommu systems,
common case depends on __ARCH_USE_MMU__, falling back on the
include/sys/mman.h:msync() stub otherwise.
Modified:
trunk/uClibc/libpthread/linuxthreads.old/wrapsyscall.c
Changeset:
Modified: trunk/uClibc/libpthread/linuxthreads.old/wrapsyscall.c
===================================================================
--- trunk/uClibc/libpthread/linuxthreads.old/wrapsyscall.c 2008-08-21 08:59:27 UTC (rev 23133)
+++ trunk/uClibc/libpthread/linuxthreads.old/wrapsyscall.c 2008-08-21 09:01:36 UTC (rev 23134)
@@ -96,7 +96,8 @@
(fd, offset, whence))
#endif
-#ifdef __NR_msync
+#if defined(__NR_msync) && defined(__ARCH_USE_MMU__)
+
/* msync(2). */
CANCELABLE_SYSCALL (int, msync, (void *addr, size_t length, int flags),
(addr, length, flags))
More information about the uClibc-cvs
mailing list