Browse Source

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
tags/v0.2.0
zwelch 13 years ago
parent
commit
eb6da244cb
2 changed files with 5 additions and 0 deletions
  1. +1
    -0
      configure.in
  2. +4
    -0
      src/helper/types.h

+ 1
- 0
configure.in View 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


+ 4
- 0
src/helper/types.h View File

@@ -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


Loading…
Cancel
Save