Переглянути джерело

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>
 ])