From: zwelch Date: Mon, 11 May 2009 02:24:58 +0000 (+0000) Subject: Add configure check for sys/types.h; include in our types.h. X-Git-Tag: v0.2.0~807 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eb6da244cb8fcaabb66825ebcd033d4180683806;p=openocd 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 --- 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