]> git.sur5r.net Git - openocd/commitdiff
build: fix problems with "struct stat" not being defined under eCos
authorØyvind Harboe <oyvind.harboe@zylin.com>
Sun, 31 Jan 2010 14:48:14 +0000 (15:48 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Sun, 31 Jan 2010 14:48:14 +0000 (15:48 +0100)
Include <sys/stat.h> according to
http://www.opengroup.org/onlinepubs/000095399/functions/stat.html

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/target/arm_semihosting.c

index 8db60a582dbc18439f6dd353366b9df3cf65c7dc..c41c5a0087f6fc5350b8ed1402a448c7f8836219 100644 (file)
@@ -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,