From 7838ce903451328b1d048e71da7fc4a8a988cfd8 Mon Sep 17 00:00:00 2001 From: Dmitry Golovin Date: Sun, 6 May 2018 13:52:07 +0000 Subject: [PATCH] add inflateReset patch --- miniz/opkg/add-inflatereset.patch | 12 ++++++++++++ miniz/opkg/rules | 1 + 2 files changed, 13 insertions(+) create mode 100644 miniz/opkg/add-inflatereset.patch diff --git a/miniz/opkg/add-inflatereset.patch b/miniz/opkg/add-inflatereset.patch new file mode 100644 index 0000000..a152ff9 --- /dev/null +++ b/miniz/opkg/add-inflatereset.patch @@ -0,0 +1,12 @@ +--- a/miniz.h ++++ b/miniz.h +@@ -446,6 +446,8 @@ + #define inflateInit2 mz_inflateInit2 + #define inflate mz_inflate + #define inflateEnd mz_inflateEnd ++#define inflateReset(s) do { mz_inflateEnd(s); mz_inflateInit(s); } while (0) ++#define inflateReset2(s,b) do { mz_inflateEnd(s); mz_inflateInit2(s,b); } while (0) + #define uncompress mz_uncompress + #define crc32 mz_crc32 + #define adler32 mz_adler32 + diff --git a/miniz/opkg/rules b/miniz/opkg/rules index 567fe35..0119c61 100755 --- a/miniz/opkg/rules +++ b/miniz/opkg/rules @@ -5,6 +5,7 @@ PACKAGE=miniz case "$1" in build) + patch -p1 < opkg/add-inflatereset.patch rm -rf build mkdir build cd build