From a1eb8e78b6ebc55516d072238864a0ce1316cb3a Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Mon, 8 Jun 2020 03:11:16 +0200 Subject: [PATCH] adapt get_lz4.sh --- common/get_lz4.sh | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/common/get_lz4.sh b/common/get_lz4.sh index 0daa62a80..6c2dcf3cb 100755 --- a/common/get_lz4.sh +++ b/common/get_lz4.sh @@ -5,9 +5,26 @@ unzip -o -j v$version "lz4-$version/LICENSE" "lz4-$version/lib/lz4.h" "lz4-$vers rm v$version.zip patch -p0 << EOF diff -Naur lz4/lz4.c lz4/lz4.c ---- lz4/lz4.c 2019-08-15 13:59:59.000000000 +0200 -+++ lz4/lz4.c 2020-06-07 12:50:11.788924953 +0200 -@@ -1650,7 +1650,7 @@ +--- lz4/lz4.c ++++ lz4/lz4.c +@@ -1270,6 +1270,7 @@ int LZ4_compress_default(const char* src, char* dst, int srcSize, int maxOutputS + } + + ++int LZ4_compress_fast_force(const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); + /* hidden debug function */ + /* strangely enough, gcc generates faster code when this function is uncommented, even if unused */ + int LZ4_compress_fast_force(const char* src, char* dst, int srcSize, int dstCapacity, int acceleration) +@@ -1644,13 +1645,16 @@ read_variable_length(const BYTE**ip, const BYTE* lencheck, int loop_check, int i + return length; + } + ++int LZ4_decompress_generic(const char* const src, char* const dst, int srcSize, int outputSize, endCondition_directive endOnInput, earlyEnd_directive partialDecoding, ++ dict_directive dict, const BYTE* const lowPrefix, const BYTE* const dictStart, const size_t dictSize ); ++ + /*! LZ4_decompress_generic() : + * This generic decompression function covers all use cases. + * It shall be instantiated several times, using different sets of directives. * Note that it is important for performance that this function really get inlined, * in order to remove useless branches during compilation optimization. */