tools/squashfskit4: fix compilation under big endian
authorRosen Penev <rosenp@gmail.com>
Sun, 20 Jun 2021 02:31:35 +0000 (21:31 -0500)
committerPaul Spooren <mail@aparcar.org>
Mon, 21 Jun 2021 04:59:36 +0000 (18:59 -1000)
commit3cbdc13bc1367a6fdc9bc2afadfae21b74d7c781
tree94c0a92c31d7d977fbfec9875ee36dab847cc9c6
parentb154a2f8d37097e51099ed816a0f8142120405e6
tools/squashfskit4: fix compilation under big endian

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>
tools/squashfskit4/Makefile
tools/squashfskit4/patches/0002-fix-build-failure-against-gcc-10.patch
tools/squashfskit4/patches/0020-big-endian.patch [new file with mode: 0644]