summaryrefslogtreecommitdiff
path: root/mmc_spl/board
diff options
context:
space:
mode:
authorDirk Behme <dirk.behme@googlemail.com>2011-07-11 08:49:18 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-09-03 22:40:46 +0200
commit34d34b88b6b3d947de86dae81574bdde85b8d01e (patch)
tree9ad6b564381bafb16cc15b059d42d2a95031ad4c /mmc_spl/board
parent15c2e2c0ea64a0ab10b6765e2b0ab46d99d9ac34 (diff)
downloadu-boot-imx-34d34b88b6b3d947de86dae81574bdde85b8d01e.zip
u-boot-imx-34d34b88b6b3d947de86dae81574bdde85b8d01e.tar.gz
u-boot-imx-34d34b88b6b3d947de86dae81574bdde85b8d01e.tar.bz2
SMDKV310: Fix host compilation of mkv310_image
Fix compilation of mkv310_image host tool tools/mkv310_image.c: In function 'main': tools/mkv310_image.c:67: error: 'S_IRUSR' undeclared (first use in this function) tools/mkv310_image.c:67: error: (Each undeclared identifier is reported only once tools/mkv310_image.c:67: error: for each function it appears in.) tools/mkv310_image.c:67: error: 'S_IWUSR' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IRGRP' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IWGRP' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IROTH' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IWOTH' undeclared (first use in this function) resulting from a 'make smdkv310_config'. Signed-off-by: Dirk Behme <dirk.behme@googlemail.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'mmc_spl/board')
-rw-r--r--mmc_spl/board/samsung/smdkv310/tools/mkv310_image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mmc_spl/board/samsung/smdkv310/tools/mkv310_image.c b/mmc_spl/board/samsung/smdkv310/tools/mkv310_image.c
index b98f233..1a51913 100644
--- a/mmc_spl/board/samsung/smdkv310/tools/mkv310_image.c
+++ b/mmc_spl/board/samsung/smdkv310/tools/mkv310_image.c
@@ -26,6 +26,7 @@
#include <fcntl.h>
#include <errno.h>
#include <string.h>
+#include <sys/stat.h>
#define CHECKSUM_OFFSET (14*1024-4)
#define BUFSIZE (16*1024)