Add missing header files to fix C99 compatibility.

git-svn-id: svn://svn.berlios.de/openocd/trunk@1559 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
zwelch 2009-04-29 00:33:35 +00:00
parent 18b5a88a8a
commit 55c39bae67
4 changed files with 15 additions and 3 deletions

View File

@ -9,6 +9,7 @@ AC_SEARCH_LIBS([dlopen], [dl])
AC_CHECK_HEADERS(jtag_minidriver.h)
AC_CHECK_HEADERS(sys/param.h)
AC_CHECK_HEADERS(sys/time.h)
AC_CHECK_HEADERS(sys/select.h)
AC_CHECK_HEADERS(elf.h)
AC_CHECK_HEADERS(strings.h)
AC_CHECK_HEADERS(stdbool.h)

View File

@ -62,6 +62,7 @@
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include "replacements.h"

View File

@ -35,7 +35,14 @@
#if BUILD_ECOSBOARD
#include <pkgconf/system.h>
#include <stdlib.h>
#include <sys/select.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h> /* select, FD_SET and friends (POSIX.1-2001) */
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h> /* FD_SET and friends (pre-POSIX.1-2001) */
#endif
/* include necessary headers for socket functionality */

View File

@ -35,9 +35,12 @@
#include "command.h"
#include "log.h"
#include "stdlib.h"
#include "string.h"
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
/* note that this is not marked as static as it must be available from outside jtag.c for those
that implement the jtag_xxx() minidriver layer