From 43558894063bd8e7814a08a723085549d277f145 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Thu, 21 Aug 2008 09:01:36 +0000 Subject: 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. --- libpthread/linuxthreads.old/wrapsyscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libpthread') 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)) -- cgit v1.2.3