aboutsummaryrefslogtreecommitdiffstats
path: root/src/ath-pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ath-pthread.c')
-rw-r--r--src/ath-pthread.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ath-pthread.c b/src/ath-pthread.c
index d6422999..9684afb2 100644
--- a/src/ath-pthread.c
+++ b/src/ath-pthread.c
@@ -24,11 +24,15 @@
#include <stdlib.h>
#include <errno.h>
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
#ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
#else
-# include <sys/time.h>
+# ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+# endif
#endif
#include <sys/types.h>
#include <sys/wait.h>