X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/b5b89c229819414c8bf741fef9d1a9dbb042a2da..c0db65fee994bb37015d864ffb3ed392aa530a04:/tools/squashfs4/patches/160-expose_lzma_xz_options.patch diff --git a/tools/squashfs4/patches/160-expose_lzma_xz_options.patch b/tools/squashfs4/patches/160-expose_lzma_xz_options.patch index b5fb80dff..d6063969d 100644 --- a/tools/squashfs4/patches/160-expose_lzma_xz_options.patch +++ b/tools/squashfs4/patches/160-expose_lzma_xz_options.patch @@ -1,6 +1,6 @@ --- /dev/null +++ b/squashfs-tools/lzma_xz_options.h -@@ -0,0 +1,112 @@ +@@ -0,0 +1,115 @@ +#ifndef LZMA_XZ_OPTIONS_H +#define LZMA_XZ_OPTIONS_H +/* @@ -27,6 +27,9 @@ +#include + +#ifndef linux ++#ifdef __FreeBSD__ ++#include ++#endif +#define __BYTE_ORDER BYTE_ORDER +#define __BIG_ENDIAN BIG_ENDIAN +#define __LITTLE_ENDIAN LITTLE_ENDIAN @@ -414,7 +417,7 @@ + if (size != sizeof(struct lzma_opts)) + goto failed; + -+ SQUASHFS_INSWAP_LZMA_COMP_OPTS(&comp_opts); ++ SQUASHFS_INSWAP_LZMA_COMP_OPTS(comp_opts); + + options.flags = comp_opts->flags & LZMA_OPT_FLT_MASK; + options.preset = (comp_opts->flags & LZMA_OPT_PRE_MASK) >> LZMA_OPT_PRE_OFF;