diff --git a/common/ft_build.c b/common/ft_build.c
index 624a1e165941356fc6bcaca4f85814fdfd53c677..65a274f84087eea80f94d76b4f9987a081845617 100644
--- a/common/ft_build.c
+++ b/common/ft_build.c
@@ -6,13 +6,13 @@
 #include <malloc.h>
 #include <environment.h>
 
+#ifdef CONFIG_OF_FLAT_TREE
+
 #include <asm/errno.h>
 #include <stddef.h>
 
 #include <ft_build.h>
 
-#ifdef CONFIG_OF_FLAT_TREE
-
 /* align addr on a size boundary - adjust address up if needed -- Cort */
 #define _ALIGN(addr,size)       (((addr)+(size)-1)&(~((size)-1)))