summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Joye <joye@Williams-Mac.local>2019-05-13 20:04:22 (GMT)
committerWilliam Joye <joye@Williams-Mac.local>2019-05-13 20:04:22 (GMT)
commit4237f4370f6c065bff99581a266404640800643f (patch)
tree330722a6be67d30567d29c2afaee859c5080f218
parentcc1f5f43522f348188e0a44427d183201140bf05 (diff)
downloadblt-4237f4370f6c065bff99581a266404640800643f.zip
blt-4237f4370f6c065bff99581a266404640800643f.tar.gz
blt-4237f4370f6c065bff99581a266404640800643f.tar.bz2
fix z_crc_t issue
-rw-r--r--tclzipfs/tclZipfs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tclzipfs/tclZipfs.c b/tclzipfs/tclZipfs.c
index 67cd43e..6a28c3d 100644
--- a/tclzipfs/tclZipfs.c
+++ b/tclzipfs/tclZipfs.c
@@ -33,7 +33,12 @@
#define MAP_FILE 0
#endif /* !MAP_FILE */
-typedef unsigned long z_crc_t;
+#ifdef Z_U4
+ typedef Z_U4 z_crc_t;
+#else
+ typedef unsigned long z_crc_t;
+#endif
+
#ifdef HAVE_ZLIB
#include "zlib.h"
#include "crypt.h"