mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
3cbdc13bc1
The macro used is for the wrong struct. Just byte swap manually. Refreshed patches. Tested on sparc64. Signed-off-by: Rosen Penev <rosenp@gmail.com>
15 lines
476 B
Diff
15 lines
476 B
Diff
--- a/squashfs-tools/xz_wrapper.c
|
|
+++ b/squashfs-tools/xz_wrapper.c
|
|
@@ -192,7 +192,10 @@ static void xz_display_options(void *buf
|
|
if(size != sizeof(struct comp_opts))
|
|
goto failed;
|
|
|
|
- SQUASHFS_INSWAP_LZMA_COMP_OPTS(comp_opts);
|
|
+#if __BYTE_ORDER == __BIG_ENDIAN
|
|
+ comp_opts->dictionary_size = inswap_le32(comp_opts->dictionary_size);
|
|
+ comp_opts->flags = inswap_le32(comp_opts->flags);
|
|
+#endif
|
|
|
|
dictionary_size = comp_opts->dictionary_size;
|
|
flags = comp_opts->flags;
|