summaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-29 00:33:35 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-29 00:33:35 +0000
commit55c39bae67cb3b26dacb78a9d45fcd900745c3d8 (patch)
tree4849a631a35997b9b7fd6f4223b7e72e1e8afbef /src/helper
parent18b5a88a8a6ea6cf93864d27a65b4d229a6f6fb6 (diff)
downloadopenocd+libswd-55c39bae67cb3b26dacb78a9d45fcd900745c3d8.tar.gz
openocd+libswd-55c39bae67cb3b26dacb78a9d45fcd900745c3d8.tar.bz2
openocd+libswd-55c39bae67cb3b26dacb78a9d45fcd900745c3d8.tar.xz
openocd+libswd-55c39bae67cb3b26dacb78a9d45fcd900745c3d8.zip
Add missing header files to fix C99 compatibility.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1559 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/jim-eventloop.c1
-rw-r--r--src/helper/replacements.h9
2 files changed, 9 insertions, 1 deletions
diff --git a/src/helper/jim-eventloop.c b/src/helper/jim-eventloop.c
index 62513704..d0b3ff01 100644
--- a/src/helper/jim-eventloop.c
+++ b/src/helper/jim-eventloop.c
@@ -62,6 +62,7 @@
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
+#include <stdio.h>
#include <errno.h>
#include "replacements.h"
diff --git a/src/helper/replacements.h b/src/helper/replacements.h
index 2725d945..8e1e51d0 100644
--- a/src/helper/replacements.h
+++ b/src/helper/replacements.h
@@ -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 */