From 02731cf78b3663739e3755295a4239f2658a3fdc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=98yvind=20Harboe?= <oyvind.harboe@zylin.com>
Date: Sun, 31 Jan 2010 15:48:14 +0100
Subject: [PATCH] build: fix problems with "struct stat" not being defined
 under eCos
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/target/arm_semihosting.c b/src/target/arm_semihosting.c
index 8db60a582..c41c5a008 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,
-- 
GitLab