summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-07-06 15:19:10 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-07-06 15:19:10 +0000
commitd41f2bfb14a6b9b31062a328f0e05a9664eaca53 (patch)
tree8ff1a6361303cdcec51d8652bfd32722f36acaea /src
parent26b60a6ade45d048a9bfc70ff5d7ee58d4197f9d (diff)
downloadopenocd_libswd-d41f2bfb14a6b9b31062a328f0e05a9664eaca53.tar.gz
openocd_libswd-d41f2bfb14a6b9b31062a328f0e05a9664eaca53.tar.bz2
openocd_libswd-d41f2bfb14a6b9b31062a328f0e05a9664eaca53.tar.xz
openocd_libswd-d41f2bfb14a6b9b31062a328f0e05a9664eaca53.zip
- fix build when using a cross compiler - do not try and run any host tools
- add missing types.h when platform does not contain elf.h git-svn-id: svn://svn.berlios.de/openocd/trunk@2482 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/helper/replacements.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/helper/replacements.h b/src/helper/replacements.h
index 84530d3f..697476a4 100644
--- a/src/helper/replacements.h
+++ b/src/helper/replacements.h
@@ -210,6 +210,8 @@ static __inline int socket_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set
#ifndef HAVE_ELF_H
+#include "types.h"
+
typedef uint32_t Elf32_Addr;
typedef uint16_t Elf32_Half;
typedef uint32_t Elf32_Off;