2008-06-04 09:01:39

by Aneesh Kumar K.V

[permalink] [raw]
Subject: [PATCH] e2fsprogs: Fix build failure on powerpc.

../../../lib/ext2fs/swapfs.c:198: error: 'struct <anonymous>' has no member named 'i_pad1'
../../../lib/ext2fs/swapfs.c:198: error: 'struct <anonymous>' has no member named 'i_pad1'
make[2]: *** [swapfs.o] Error 1
make[1]: *** [all-libs-recursive] Error 1
make: *** [all] Error 2

Signed-off-by: Aneesh Kumar K.V <[email protected]>
---
lib/ext2fs/swapfs.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lib/ext2fs/swapfs.c b/lib/ext2fs/swapfs.c
index 33c7ab3..5fe3292 100644
--- a/lib/ext2fs/swapfs.c
+++ b/lib/ext2fs/swapfs.c
@@ -195,7 +195,8 @@ void ext2fs_swap_inode_full(ext2_filsys fs, struct ext2_inode_large *t,
ext2fs_swab32(f->osd1.linux1.l_i_version);
t->osd2.linux2.l_i_blocks_hi =
ext2fs_swab16(f->osd2.linux2.l_i_blocks_hi);
- t->osd2.linux2.i_pad1 = ext2fs_swab16(f->osd2.linux2.i_pad1);
+ t->osd2.linux2.l_i_file_acl_high =
+ ext2fs_swab16(f->osd2.linux2.l_i_file_acl_high);
t->osd2.linux2.l_i_uid_high =
ext2fs_swab16 (f->osd2.linux2.l_i_uid_high);
t->osd2.linux2.l_i_gid_high =
--
1.5.5.1.357.g1af8b.dirty