From eb6da244cb8fcaabb66825ebcd033d4180683806 Mon Sep 17 00:00:00 2001 From: zwelch Date: Mon, 11 May 2009 02:24:58 +0000 Subject: [PATCH] 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 --- configure.in | 1 + src/helper/types.h | 4 ++++ 2 files changed, 5 insertions(+) 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 +#endif + #ifndef u8 typedef unsigned char u8; #endif -- 2.39.5