Explorar o código

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.

Paul Mundt %!s(int64=17) %!d(string=hai) anos
pai
achega
4355889406
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      libpthread/linuxthreads.old/wrapsyscall.c

+ 2 - 1
libpthread/linuxthreads.old/wrapsyscall.c

@@ -96,7 +96,8 @@ CANCELABLE_SYSCALL (off64_t, lseek64, (int fd, off64_t offset, int whence),
 		    (fd, offset, whence))
 		    (fd, offset, whence))
 #endif
 #endif
 
 
-#ifdef __NR_msync
+#if defined(__NR_msync) && defined(__ARCH_USE_MMU__)
+
 /* msync(2).  */
 /* msync(2).  */
 CANCELABLE_SYSCALL (int, msync, (void *addr, size_t length, int flags),
 CANCELABLE_SYSCALL (int, msync, (void *addr, size_t length, int flags),
 		    (addr, length, flags))
 		    (addr, length, flags))