diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-23 21:38:06 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-23 21:38:06 +0000 |
commit | a928e011b61c7d8d8d6a00590705e52fef105474 (patch) | |
tree | 5bdb4d58c9fb7bad6096a7e889caaeac0da11e96 /e2fsprogs/ext2fs | |
parent | 95a9af7e0cadf96048876517b690531e6b5a452b (diff) | |
download | busybox-w32-a928e011b61c7d8d8d6a00590705e52fef105474.tar.gz busybox-w32-a928e011b61c7d8d8d6a00590705e52fef105474.tar.bz2 busybox-w32-a928e011b61c7d8d8d6a00590705e52fef105474.zip |
Ken McGuire's patch to make mke2fs and e2fsck work on big endian systems like
PPC, with an obligatory couple of swipes from me.
git-svn-id: svn://busybox.net/trunk/busybox@13536 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'e2fsprogs/ext2fs')
-rw-r--r-- | e2fsprogs/ext2fs/ext2fs.h | 2 | ||||
-rw-r--r-- | e2fsprogs/ext2fs/native.c | 27 |
2 files changed, 1 insertions, 28 deletions
diff --git a/e2fsprogs/ext2fs/ext2fs.h b/e2fsprogs/ext2fs/ext2fs.h index eda962239..e2e86579b 100644 --- a/e2fsprogs/ext2fs/ext2fs.h +++ b/e2fsprogs/ext2fs/ext2fs.h | |||
@@ -34,7 +34,7 @@ extern "C" { | |||
34 | * has been configured or if we're being built on a CPU architecture | 34 | * has been configured or if we're being built on a CPU architecture |
35 | * with a non-native byte order. | 35 | * with a non-native byte order. |
36 | */ | 36 | */ |
37 | #if defined(ENABLE_SWAPFS) || defined(WORDS_BIGENDIAN) | 37 | #if defined(ENABLE_SWAPFS) || defined(WORDS_BIGENDIAN) || __BYTE_ORDER== __BIG_ENDIAN |
38 | #define EXT2FS_ENABLE_SWAPFS | 38 | #define EXT2FS_ENABLE_SWAPFS |
39 | #endif | 39 | #endif |
40 | 40 | ||
diff --git a/e2fsprogs/ext2fs/native.c b/e2fsprogs/ext2fs/native.c deleted file mode 100644 index 85d098967..000000000 --- a/e2fsprogs/ext2fs/native.c +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | /* | ||
2 | * native.c --- returns the ext2_flag for a native byte order | ||
3 | * | ||
4 | * Copyright (C) 1996 Theodore Ts'o. | ||
5 | * | ||
6 | * %Begin-Header% | ||
7 | * This file may be redistributed under the terms of the GNU Public | ||
8 | * License. | ||
9 | * %End-Header% | ||
10 | */ | ||
11 | |||
12 | #include <stdio.h> | ||
13 | |||
14 | #include "ext2_fs.h" | ||
15 | #include "ext2fs.h" | ||
16 | |||
17 | int ext2fs_native_flag(void) | ||
18 | { | ||
19 | #ifdef WORDS_BIGENDIAN | ||
20 | return EXT2_FLAG_SWAP_BYTES; | ||
21 | #else | ||
22 | return 0; | ||
23 | #endif | ||
24 | } | ||
25 | |||
26 | |||
27 | |||