aboutsummaryrefslogtreecommitdiffstats
path: root/main/e2fsprogs/swapfs-big-endian-FTBFS.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/e2fsprogs/swapfs-big-endian-FTBFS.patch')
-rw-r--r--main/e2fsprogs/swapfs-big-endian-FTBFS.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/main/e2fsprogs/swapfs-big-endian-FTBFS.patch b/main/e2fsprogs/swapfs-big-endian-FTBFS.patch
new file mode 100644
index 0000000000..fee4e0dbce
--- /dev/null
+++ b/main/e2fsprogs/swapfs-big-endian-FTBFS.patch
@@ -0,0 +1,19 @@
+--- a/lib/ext2fs/swapfs.c
++++ b/lib/ext2fs/swapfs.c
+@@ -19,6 +19,7 @@
+
+ #include "ext2_fs.h"
+ #include "ext2fs.h"
++#include "ext2fsP.h"
+ #include <ext2fs/ext2_ext_attr.h>
+
+ #ifdef WORDS_BIGENDIAN
+@@ -358,7 +359,7 @@ void ext2fs_swap_inode_full(ext2_filsys
+ if (inode_includes(inode_size, i_projid))
+ t->i_projid = ext2fs_swab16(f->i_projid);
+ /* catch new static fields added after i_projid */
+- EXT2FS_BUILD_BUG_ON(sizeof(ext2_inode_large) != 160);
++ EXT2FS_BUILD_BUG_ON(sizeof(struct ext2_inode_large) != 160);
+
+ i = sizeof(struct ext2_inode) + extra_isize + sizeof(__u32);
+ if (bufsize < (int) i)