浏览代码

Do not unconditionally include unistd.h

Samuel Thibault 10 年之前
父节点
当前提交
93bcee857d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      configure.ac

+ 2 - 0
configure.ac

@@ -212,7 +212,9 @@ AC_CHECK_TYPES([struct timespec],
 	       [], [
 #include <sys/types.h>
 #include <sys/stat.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 #include <time.h>
 ])