wok-next annotate busybox/stuff/busybox-1.23-zmodules.u @ rev 18920

Add brotli (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 24 17:34:26 2016 +0100 (2016-02-24)
parents 4a9f656c414b
children
rev   line source
pascal@17518 1 Add LZMA_DEFAULT_MAGIC support
pascal@17518 2 --- busybox-1.23/archival/libarchive/open_transformer.c
pascal@17518 3 +++ busybox-1.23/archival/libarchive/open_transformer.c
pascal@17550 4 @@ -178,6 +178,22 @@
pascal@17518 5 /* .gz and .bz2 both have 2-byte signature, and their
pascal@17518 6 * unpack_XXX_stream wants this header skipped. */
pascal@17518 7 xread(fd, magic.b16, sizeof(magic.b16[0]));
pascal@17518 8 +#if 1
pascal@17518 9 +// SliTaz uses .gz suffix for lzma'd kernel modules
pascal@17518 10 +#if BB_BIG_ENDIAN
pascal@17518 11 +#define LZMA_DEFAULT_MAGIC 0x5d00
pascal@17518 12 +#else
pascal@17518 13 +#define LZMA_DEFAULT_MAGIC 0x5d
pascal@17518 14 +#endif
pascal@17518 15 + if (ENABLE_FEATURE_SEAMLESS_LZMA
pascal@17518 16 + && magic.b16[0] == LZMA_DEFAULT_MAGIC
pascal@17518 17 + ) {
pascal@17550 18 + xlseek(fd, offset, SEEK_CUR);
pascal@17518 19 + xstate->xformer = unpack_lzma_stream;
pascal@17518 20 + USE_FOR_NOMMU(xstate->xformer_prog = "unlzma";)
pascal@17518 21 + goto found_magic;
pascal@17518 22 + }
pascal@17518 23 +#endif
pascal@17518 24 if (ENABLE_FEATURE_SEAMLESS_GZ
pascal@17518 25 && magic.b16[0] == GZIP_MAGIC
pascal@17518 26 ) {