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 <carenas@xxxxxxxxx> --- 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 <zlib.h> +#ifndef z_const +#define z_const +#endif /* clang-format off */ -- 2.33.0.rc2.476.g1b09a32a73