summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorJörg Krause <joerg.krause@embedded.rocks>2015-04-22 21:36:22 +0200
committerTom Rini <trini@konsulko.com>2015-05-08 17:24:17 -0400
commit26e355d131a6b56ea78a156c1cee4f6ba0500b37 (patch)
tree7b4c43d1c341b58ee5d7d930af6512c55979e4ef /include/image.h
parent1cdd9412002000aafcfb6f10cd02069adc66ba49 (diff)
downloadu-boot-imx-26e355d131a6b56ea78a156c1cee4f6ba0500b37.zip
u-boot-imx-26e355d131a6b56ea78a156c1cee4f6ba0500b37.tar.gz
u-boot-imx-26e355d131a6b56ea78a156c1cee4f6ba0500b37.tar.bz2
Fix musl build
This patch fixes cross-compiling U-Boot tools with the musl C library: * including <sys/types.h> is needed for ulong * defining _GNU_SOURCE is needed for loff_t Tested for target at91sam9261ek_dataflash_cs3. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Cc: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index 3844be6..60b924a 100644
--- a/include/image.h
+++ b/include/image.h
@@ -23,6 +23,7 @@
struct lmb;
#ifdef USE_HOSTCC
+#include <sys/types.h>
/* new uImage format support enabled on host */
#define CONFIG_FIT 1