X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Flibfdt_env.h;h=a7fd2f8d9a6aa43a63808a3327ddfb3521835e1d;hb=becbbc7b2a1be44d38779c80ce94fb20e5e13f12;hp=e746314b1e7522f0dcc9f8b5a46c9d9ba9e292ba;hpb=5cca4092bd23d255ed304b8f76cd18ac11adb785;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/libfdt_env.h b/include/libfdt_env.h index e746314..a7fd2f8 100644 --- a/include/libfdt_env.h +++ b/include/libfdt_env.h @@ -21,12 +21,17 @@ #ifndef _LIBFDT_ENV_H #define _LIBFDT_ENV_H -#include -#include -#include +#ifdef USE_HOSTCC +#include +#include +#else #include +#include +#endif /* USE_HOSTCC */ -struct fdt_header *fdt; /* Pointer to the working fdt */ +#include +#include +extern struct fdt_header *working_fdt; /* Pointer to the working fdt */ #define fdt32_to_cpu(x) __be32_to_cpu(x) #define cpu_to_fdt32(x) __cpu_to_be32(x)