From: Carlo Marcelo Arenas Belón Date: Mon, 16 Aug 2021 01:15:36 GMT Subject: [PATCH v2 5/7] fixup! Provide zlib's uncompress2 from compat/zlib-compat.c Message-ID: <20210816011538.34199-6-carenas@gmail.com> In-Reply-To: <20210816011538.34199-1-carenas@gmail.com> the code imported from zlib 1.2.11 uses an optional feature from 1.2.5.2 that could cause compilation errors with older versions. make sure it is defined and disabled in those cases to avoid building failures. Signed-off-by: Carlo Marcelo Arenas Belón --- compat/zlib-uncompress2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compat/zlib-uncompress2.c b/compat/zlib-uncompress2.c index 23b72b49c4..f49f680567 100644 --- a/compat/zlib-uncompress2.c +++ b/compat/zlib-uncompress2.c @@ -14,6 +14,9 @@ */ #include +#ifndef z_const +#define z_const +#endif /* clang-format off */ -- 2.33.0.rc2.476.g1b09a32a73