From b3d56cb3645f93ae374badaca88dd2559e0c5421 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Thu, 15 Nov 2018 08:34:59 +0000 Subject: Another attempt to fix Travis build: making the build robust against older zlib.h header file --- generic/tclZipfs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c index 428be15..4864a43 100644 --- a/generic/tclZipfs.c +++ b/generic/tclZipfs.c @@ -291,6 +291,11 @@ static const char pwrot[16] = { /* * Table to compute CRC32. */ +#ifdef Z_U4 + typedef Z_U4 z_crc_t; +#else + typedef unsigned long z_crc_t; +#endif static const z_crc_t crc32tab[256] = { 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, -- cgit v0.12