X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Flibfdt_env.h;h=a7fd2f8d9a6aa43a63808a3327ddfb3521835e1d;hb=a58c78067c928976c082c758d3987e89ead5b191;hp=78f725830da8b1a22b9682355df9ec320617f1b0;hpb=bb930e76fea6cf89ca2d98e2f7c7a6043d79327d;p=u-boot diff --git a/include/libfdt_env.h b/include/libfdt_env.h index 78f725830d..a7fd2f8d9a 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 */ -extern 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)