summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in1
-rw-r--r--src/helper/types.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 3f3aae59..4d1240b5 100644
--- a/configure.in
+++ b/configure.in
@@ -17,6 +17,7 @@ AC_CHECK_HEADERS(strings.h)
AC_CHECK_HEADERS(sys/param.h)
AC_CHECK_HEADERS(sys/time.h)
AC_CHECK_HEADERS(sys/select.h)
+AC_CHECK_HEADERS(sys/types.h)
AC_HEADER_ASSERT
AC_HEADER_STDBOOL
diff --git a/src/helper/types.h b/src/helper/types.h
index 047f76c2..71eae2c3 100644
--- a/src/helper/types.h
+++ b/src/helper/types.h
@@ -27,6 +27,10 @@
#include "config.h"
#endif
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
#ifndef u8
typedef unsigned char u8;
#endif