summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-08-21 09:01:36 +0000
committerPaul Mundt <lethal@linux-sh.org>2008-08-21 09:01:36 +0000
commit43558894063bd8e7814a08a723085549d277f145 (patch)
tree9b656daecc356c6f3e22f3df07d90d9362263feb
parenta8267f12cef2af969ae395ab6300e64d146404d2 (diff)
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.
-rw-r--r--libpthread/linuxthreads.old/wrapsyscall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpthread/linuxthreads.old/wrapsyscall.c b/libpthread/linuxthreads.old/wrapsyscall.c
index c1ddcb8fe..466589ef9 100644
--- a/libpthread/linuxthreads.old/wrapsyscall.c
+++ b/libpthread/linuxthreads.old/wrapsyscall.c
@@ -96,7 +96,8 @@ CANCELABLE_SYSCALL (off64_t, lseek64, (int fd, off64_t offset, int whence),
(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))