aboutsummaryrefslogtreecommitdiffstats
path: root/src/posix-sema.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/posix-sema.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/posix-sema.c b/src/posix-sema.c
index 7ab08dfd..b1808fd9 100644
--- a/src/posix-sema.c
+++ b/src/posix-sema.c
@@ -35,7 +35,9 @@
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
-#include <sys/types.h>
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
#include "util.h"
#include "sema.h"