diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-11-15 08:34:59 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-11-15 08:34:59 (GMT) |
commit | b3d56cb3645f93ae374badaca88dd2559e0c5421 (patch) | |
tree | 616ba55a285bcd36f375923bd35d3bb9a199d53f | |
parent | 65ae2c205ec2dfe95ce012b45d5d3adc07370685 (diff) | |
download | tcl-b3d56cb3645f93ae374badaca88dd2559e0c5421.zip tcl-b3d56cb3645f93ae374badaca88dd2559e0c5421.tar.gz tcl-b3d56cb3645f93ae374badaca88dd2559e0c5421.tar.bz2 |
Another attempt to fix Travis build: making the build robust against older zlib.h header file
-rw-r--r-- | generic/tclZipfs.c | 5 |
1 files changed, 5 insertions, 0 deletions
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, |