]> git.sur5r.net Git - u-boot/blobdiff - include/libfdt_env.h
mx31 litekit support
[u-boot] / include / libfdt_env.h
index e746314b1e7522f0dcc9f8b5a46c9d9ba9e292ba..98c522ae42af7a5984d644548017576def326d2b 100644 (file)
 #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 */
 
-struct fdt_header *fdt;         /* Pointer to the working fdt */
+extern struct fdt_header *fdt;  /* Pointer to the working fdt */
 
 #define fdt32_to_cpu(x)                __be32_to_cpu(x)
 #define cpu_to_fdt32(x)                __cpu_to_be32(x)