diff --git a/include/image.h b/include/image.h
index 4ed03791069b72dcb69a833485861074848c4dab..acc553cae9cfa34d7376716b89f1ff808f96fa5d 100644
--- a/include/image.h
+++ b/include/image.h
@@ -46,11 +46,10 @@
 
 #include <lmb.h>
 #include <asm/u-boot.h>
+#include <command.h>
 
 #endif /* USE_HOSTCC */
 
-#include <command.h>
-
 #if defined(CONFIG_FIT)
 #include <fdt.h>
 #include <libfdt.h>