]> git.sur5r.net Git - openocd/commitdiff
Add configure check for sys/types.h; include in our types.h.
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 11 May 2009 02:24:58 +0000 (02:24 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 11 May 2009 02:24:58 +0000 (02:24 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1699 b42882b7-edfa-0310-969c-e2dbd0fdcd60

configure.in
src/helper/types.h

index 3f3aae59b40962e3fe6d2058dfd4f1ecc51d2a63..4d1240b5a606f5c5b64b6ee1120c03ab36634ca9 100644 (file)
@@ -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
index 047f76c2fda4c5970b8e8dd48e046aeeecefafc1..71eae2c35fb892666e65237bcde5e4a90e071175 100644 (file)
 #include "config.h"
 #endif
 
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
 #ifndef u8
 typedef unsigned char u8;
 #endif