From b16a1198d956d1b2e69a3c5396a0a51fa6ce4cc3 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Wed, 14 Nov 2018 07:39:45 +0000 Subject: Workaround for crypt.h, when used in combination with older zlib library. Should make Travis build work again --- compat/zlib/contrib/minizip/crypt.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compat/zlib/contrib/minizip/crypt.h b/compat/zlib/contrib/minizip/crypt.h index 1e9e820..c422c26 100644 --- a/compat/zlib/contrib/minizip/crypt.h +++ b/compat/zlib/contrib/minizip/crypt.h @@ -29,6 +29,12 @@ #define CRC32(c, b) ((*(pcrc_32_tab+(((int)(c) ^ (b)) & 0xff))) ^ ((c) >> 8)) +#ifdef Z_U4 + typedef Z_U4 z_crc_t; +#else + typedef unsigned long z_crc_t; +#endif + /*********************************************************************** * Return the next byte in the pseudo-random sequence */ -- cgit v0.12