ソースを参照

only define msync cancellation point if the syscall exists

Mike Frysinger 17 年 前
コミット
1139d948d5
1 ファイル変更2 行追加0 行削除
  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).  */