Add configure check for sys/types.h; include in our types.h.
[openocd.git] / src / helper / types.h
index 047f76c..71eae2c 100644 (file)
 #include "config.h"
 #endif
 
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
 #ifndef u8
 typedef unsigned char u8;
 #endif