summaryrefslogtreecommitdiff
path: root/include/libfdt_env.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libfdt_env.h')
-rw-r--r--include/libfdt_env.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libfdt_env.h b/include/libfdt_env.h
index 78f725830da..98c522ae42a 100644
--- a/include/libfdt_env.h
+++ b/include/libfdt_env.h
@@ -24,7 +24,11 @@
#include <stddef.h>
#include <linux/types.h>
#include <asm/byteorder.h>
+#ifdef USE_HOSTCC
+#include <string.h>
+#else
#include <linux/string.h>
+#endif /* USE_HOSTCC */
extern struct fdt_header *fdt; /* Pointer to the working fdt */