summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-11-14 07:39:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-11-14 07:39:45 (GMT)
commitb16a1198d956d1b2e69a3c5396a0a51fa6ce4cc3 (patch)
treef966001688ceb1a6416f72dcbb91cbb0ce748747 /compat
parent237b0edf0d2fdc3583165a76a0e92598b9df75d9 (diff)
downloadtcl-b16a1198d956d1b2e69a3c5396a0a51fa6ce4cc3.zip
tcl-b16a1198d956d1b2e69a3c5396a0a51fa6ce4cc3.tar.gz
tcl-b16a1198d956d1b2e69a3c5396a0a51fa6ce4cc3.tar.bz2
Workaround for crypt.h, when used in combination with older zlib library. Should make Travis build work again
Diffstat (limited to 'compat')
-rw-r--r--compat/zlib/contrib/minizip/crypt.h6
1 files changed, 6 insertions, 0 deletions
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
*/