summaryrefslogtreecommitdiffstats
path: root/tools/e2fsprogs/patches/004-big_endian_compile_fix.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2010-12-19 11:43:45 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2010-12-19 11:43:45 +0000
commitba45b5a90730d8b3bc90e27bf16e8911fd4577d3 (patch)
tree558be7769a3fe35512c236e021bb685c340c3b3e /tools/e2fsprogs/patches/004-big_endian_compile_fix.patch
parentefb7c910ee4c0755457ab92daa67f1d5ae2e3f2c (diff)
downloadmaster-31e0f0ae-ba45b5a90730d8b3bc90e27bf16e8911fd4577d3.tar.gz
master-31e0f0ae-ba45b5a90730d8b3bc90e27bf16e8911fd4577d3.tar.bz2
master-31e0f0ae-ba45b5a90730d8b3bc90e27bf16e8911fd4577d3.zip
e2fsprogs: add two compile fixes.
Thank you Joe Roback for reporting and fixing compiling on Darwin. SVN-Revision: 24720
Diffstat (limited to 'tools/e2fsprogs/patches/004-big_endian_compile_fix.patch')
-rw-r--r--tools/e2fsprogs/patches/004-big_endian_compile_fix.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/e2fsprogs/patches/004-big_endian_compile_fix.patch b/tools/e2fsprogs/patches/004-big_endian_compile_fix.patch
new file mode 100644
index 0000000000..9c3e3360e7
--- /dev/null
+++ b/tools/e2fsprogs/patches/004-big_endian_compile_fix.patch
@@ -0,0 +1,26 @@
+From: Theodore Ts'o <tytso@mit.edu>
+Date: Fri, 17 Dec 2010 03:11:43 +0000 (-0500)
+Subject: libext2fs: Fix compile bug on big-endian architectures
+X-Git-Url: http://git.kernel.org/?p=fs%2Fext2%2Fe2fsprogs.git;a=commitdiff_plain;h=9098c986b64bb65a2b7fcd2724a400ba1f451f6b
+
+libext2fs: Fix compile bug on big-endian architectures
+
+Addresses-Sourceforge-Bug: #3138115
+
+Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
+---
+
+diff --git a/lib/ext2fs/swapfs.c b/lib/ext2fs/swapfs.c
+index 6f6cec2..12427e0 100644
+--- a/lib/ext2fs/swapfs.c
++++ b/lib/ext2fs/swapfs.c
+@@ -72,7 +72,7 @@ void ext2fs_swap_super(struct ext2_super_block * sb)
+ sb->s_flags = ext2fs_swab32(sb->s_flags);
+ sb->s_kbytes_written = ext2fs_swab64(sb->s_kbytes_written);
+ sb->s_snapshot_inum = ext2fs_swab32(sb->s_snapshot_inum);
+- sb->s_snapshot_id = ext2fs_swab32(s_snapshot_id);
++ sb->s_snapshot_id = ext2fs_swab32(sb->s_snapshot_id);
+ sb->s_snapshot_r_blocks_count =
+ ext2fs_swab64(sb->s_snapshot_r_blocks_count);
+ sb->s_snapshot_list = ext2fs_swab32(sb->s_snapshot_list);
+