aboutsummaryrefslogtreecommitdiffstats
path: root/src/ath.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ath.c')
-rw-r--r--src/ath.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ath.c b/src/ath.c
index a303ffc2..e5acbdaa 100644
--- a/src/ath.c
+++ b/src/ath.c
@@ -33,7 +33,9 @@
# include <sys/time.h>
# endif
#endif
-#include <sys/types.h>
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
#ifndef HAVE_W32_SYSTEM
#include <sys/wait.h>
#endif
@@ -60,7 +62,6 @@ ath_self (void)
}
#else
# ifdef __linux
-#include <sys/types.h>
#include <sys/syscall.h>
uintptr_t
ath_self (void)