Ken McGuire's patch to make mke2fs and e2fsck work on big endian systems like

PPC, with an obligatory couple of swipes from me.
This commit is contained in:
Rob Landley
2006-01-23 21:38:06 +00:00
parent 6130b9b160
commit 391a904f46
5 changed files with 17 additions and 31 deletions

View File

@@ -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