diff options
Diffstat (limited to 'lib/ext2fs/tst_super_size.c')
-rw-r--r-- | lib/ext2fs/tst_super_size.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ext2fs/tst_super_size.c b/lib/ext2fs/tst_super_size.c index 76e6e6fe..f9cec8af 100644 --- a/lib/ext2fs/tst_super_size.c +++ b/lib/ext2fs/tst_super_size.c @@ -21,7 +21,10 @@ struct sb_struct sb; +#ifndef offsetof #define offsetof(type, member) __builtin_offsetof (type, member) +#endif + #define check_field(x, s) cur_offset = do_field(#x, s, sizeof(sb.x), \ offsetof(struct sb_struct, x), \ cur_offset) @@ -132,7 +135,8 @@ int main(int argc, char **argv) check_field(s_usr_quota_inum, 4); check_field(s_grp_quota_inum, 4); check_field(s_overhead_blocks, 4); - check_field(s_reserved, 108 * 4); + check_field(s_backup_bgs, 8); + check_field(s_reserved, 106 * 4); check_field(s_checksum, 4); do_field("Superblock end", 0, 0, cur_offset, 1024); #endif |