diff --git a/include/image.h b/include/image.h
index 4ed0379106..acc553cae9 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>