summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/fdt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/fdt.h b/include/fdt.h
index 48ccfd910..39beada63 100644
--- a/include/fdt.h
+++ b/include/fdt.h
@@ -3,6 +3,10 @@
#ifndef __ASSEMBLY__
+#ifdef USE_HOSTCC
+#include <stdint.h>
+#endif
+
struct fdt_header {
uint32_t magic; /* magic word FDT_MAGIC */
uint32_t totalsize; /* total size of DT block */