浏览代码

Fix windows build

Samuel Thibault 8 年之前
父节点
当前提交
b5587c6b93
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/core/disk_ops/unistd/disk_unistd_global.h

+ 2 - 0
src/core/disk_ops/unistd/disk_unistd_global.h

@@ -18,7 +18,9 @@
 #define __DISK_UNISTD_GLOBAL_H__
 
 #include <fcntl.h>
+#ifdef __linux
 #include <sys/syscall.h>
+#endif
 
 #ifndef O_BINARY
 #define O_BINARY 0