aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 02:24:58 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 02:24:58 +0000
commiteb6da244cb8fcaabb66825ebcd033d4180683806 (patch)
treed5a7a9a3bd08a83aca34f24b8cd69cf3fafc32a8
parent55342151a305f59ec1df3af7f12cad87f610d906 (diff)
downloadriscv-openocd-eb6da244cb8fcaabb66825ebcd033d4180683806.zip
riscv-openocd-eb6da244cb8fcaabb66825ebcd033d4180683806.tar.gz
riscv-openocd-eb6da244cb8fcaabb66825ebcd033d4180683806.tar.bz2
Add configure check for sys/types.h; include in our types.h.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1699 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-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 3f3aae5..4d1240b 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 047f76c..71eae2c 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