From 391a904f46d96430c8462bf077708b7179f4810d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 23 Jan 2006 21:38:06 +0000 Subject: Ken McGuire's patch to make mke2fs and e2fsck work on big endian systems like PPC, with an obligatory couple of swipes from me. --- e2fsprogs/e2fsbb.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'e2fsprogs/e2fsbb.h') 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__ */ -- cgit v1.2.3