Explorar o código

Do not unconditionally include unistd.h

Samuel Thibault %!s(int64=10) %!d(string=hai) anos
pai
achega
93bcee857d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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>
 ])