aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/e2fsbb.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-01-23 21:38:06 +0000
committerRob Landley <rob@landley.net>2006-01-23 21:38:06 +0000
commit391a904f46d96430c8462bf077708b7179f4810d (patch)
tree5bdb4d58c9fb7bad6096a7e889caaeac0da11e96 /e2fsprogs/e2fsbb.h
parent6130b9b16027d09cacff9da44f3cd6efb57b9c54 (diff)
downloadbusybox-391a904f46d96430c8462bf077708b7179f4810d.tar.gz
Ken McGuire's patch to make mke2fs and e2fsck work on big endian systems like
PPC, with an obligatory couple of swipes from me.
Diffstat (limited to 'e2fsprogs/e2fsbb.h')
-rw-r--r--e2fsprogs/e2fsbb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/e2fsprogs/e2fsbb.h b/e2fsprogs/e2fsbb.h
index 6a3d28c69..f8ab0f493 100644
--- a/e2fsprogs/e2fsbb.h
+++ b/e2fsprogs/e2fsbb.h
@@ -54,4 +54,10 @@ typedef long errcode_t;
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
+/* Endianness */
+#if __BYTE_ORDER== __BIG_ENDIAN
+#define ENABLE_SWAPFS 1
+#define WORDS_BIGENDIAN 1
+#endif
+
#endif /* __E2FSBB_H__ */