浏览代码

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).  */