summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-01-31 15:48:14 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-01-31 15:48:14 +0100
commit02731cf78b3663739e3755295a4239f2658a3fdc (patch)
treefcb12cc7efc91513772e784f705ffb7378b38efa /src
parentf68dff66904321392c3137db7eb40e8633c2e507 (diff)
downloadopenocd+libswd-02731cf78b3663739e3755295a4239f2658a3fdc.tar.gz
openocd+libswd-02731cf78b3663739e3755295a4239f2658a3fdc.tar.bz2
openocd+libswd-02731cf78b3663739e3755295a4239f2658a3fdc.tar.xz
openocd+libswd-02731cf78b3663739e3755295a4239f2658a3fdc.zip
build: fix problems with "struct stat" not being defined under eCos
Include <sys/stat.h> according to http://www.opengroup.org/onlinepubs/000095399/functions/stat.html Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src')
-rw-r--r--src/target/arm_semihosting.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/arm_semihosting.c b/src/target/arm_semihosting.c
index 8db60a58..c41c5a00 100644
--- a/src/target/arm_semihosting.c
+++ b/src/target/arm_semihosting.c
@@ -43,6 +43,7 @@
#include "arm_semihosting.h"
#include <helper/binarybuffer.h>
#include <helper/log.h>
+#include <sys/stat.h>
static int open_modeflags[12] = {
O_RDONLY,