summaryrefslogtreecommitdiffstats
path: root/include/envfs.h
diff options
context:
space:
mode:
authorDirk Hörner <dirker@gmail.com>2012-06-04 22:40:17 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-06-05 21:40:15 +0200
commita906e5e196551e1c232bb2d28413e918cf8889f1 (patch)
treef570a379232341ea20cec6c01c4f8b8c2136c2e8 /include/envfs.h
parentf324a85e8b9ed5efb6c135a2c76df2347300f100 (diff)
downloadbarebox-a906e5e196551e1c232bb2d28413e918cf8889f1.tar.gz
barebox-a906e5e196551e1c232bb2d28413e918cf8889f1.tar.xz
hostcc tools: include "compiler.h", fix included headers
When barebox headers get included from HOSTCC tools they should not include other architecture specific headers as barebox might get cross-compiled. Instead, the tool itself should include "compiler.h". Signed-off-by: Dirk Hörner <dirker@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/envfs.h')
-rw-r--r--include/envfs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/envfs.h b/include/envfs.h
index b5849d9b8d..67b890222c 100644
--- a/include/envfs.h
+++ b/include/envfs.h
@@ -1,7 +1,9 @@
#ifndef _ENVFS_H
#define _ENVFS_H
+#ifdef __BAREBOX__
#include <asm/byteorder.h>
+#endif
#define ENVFS_MAGIC 0x798fba79 /* some random number */
#define ENVFS_INODE_MAGIC 0x67a8c78d