Skip to content

Commit

Permalink
add inflateReset patch
Browse files Browse the repository at this point in the history
  • Loading branch information
tpimh committed May 6, 2018
1 parent 8126734 commit 7838ce9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions miniz/opkg/add-inflatereset.patch
Original file line number Diff line number Diff line change
@@ -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

1 change: 1 addition & 0 deletions miniz/opkg/rules
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ PACKAGE=miniz

case "$1" in
build)
patch -p1 < opkg/add-inflatereset.patch
rm -rf build
mkdir build
cd build
Expand Down

0 comments on commit 7838ce9

Please sign in to comment.