summaryrefslogtreecommitdiff
path: root/e2fsprogs/ext2fs/ext2fs.h
diff options
context:
space:
mode:
authorRob Landley2006-01-23 21:38:06 +0000
committerRob Landley2006-01-23 21:38:06 +0000
commit391a904f46d96430c8462bf077708b7179f4810d (patch)
tree5bdb4d58c9fb7bad6096a7e889caaeac0da11e96 /e2fsprogs/ext2fs/ext2fs.h
parent6130b9b16027d09cacff9da44f3cd6efb57b9c54 (diff)
downloadbusybox-391a904f46d96430c8462bf077708b7179f4810d.zip
busybox-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/ext2fs/ext2fs.h')
-rw-r--r--e2fsprogs/ext2fs/ext2fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/e2fsprogs/ext2fs/ext2fs.h b/e2fsprogs/ext2fs/ext2fs.h
index eda9622..e2e8657 100644
--- a/e2fsprogs/ext2fs/ext2fs.h
+++ b/e2fsprogs/ext2fs/ext2fs.h
@@ -34,7 +34,7 @@ extern "C" {
* has been configured or if we're being built on a CPU architecture
* with a non-native byte order.
*/
-#if defined(ENABLE_SWAPFS) || defined(WORDS_BIGENDIAN)
+#if defined(ENABLE_SWAPFS) || defined(WORDS_BIGENDIAN) || __BYTE_ORDER== __BIG_ENDIAN
#define EXT2FS_ENABLE_SWAPFS
#endif