Sfoglia il codice sorgente

only define msync cancellation point if the syscall exists

Mike Frysinger 17 anni fa
parent
commit
1139d948d5
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      libpthread/linuxthreads.old/wrapsyscall.c

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

@@ -96,9 +96,11 @@ CANCELABLE_SYSCALL (off64_t, lseek64, (int fd, off64_t offset, int whence),
 		    (fd, offset, whence))
 #endif
 
+#ifdef __NR_msync
 /* msync(2).  */
 CANCELABLE_SYSCALL (int, msync, (__ptr_t addr, size_t length, int flags),
 		    (addr, length, flags))
+#endif
 
 
 /* nanosleep(2).  */