summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Joye <joye@Williams-Mac.local>2019-05-13 19:55:02 (GMT)
committerWilliam Joye <joye@Williams-Mac.local>2019-05-13 19:55:02 (GMT)
commitcc1f5f43522f348188e0a44427d183201140bf05 (patch)
tree2668ffa42645f11d9976fa3005c5095d3634872a
parentbe946cd8b41033f9f55261048f1fca22ec31b7ac (diff)
downloadblt-cc1f5f43522f348188e0a44427d183201140bf05.zip
blt-cc1f5f43522f348188e0a44427d183201140bf05.tar.gz
blt-cc1f5f43522f348188e0a44427d183201140bf05.tar.bz2
fix z_crc_t issue
-rw-r--r--tclzipfs/tclZipfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tclzipfs/tclZipfs.c b/tclzipfs/tclZipfs.c
index 8b23a7d..67cd43e 100644
--- a/tclzipfs/tclZipfs.c
+++ b/tclzipfs/tclZipfs.c
@@ -33,6 +33,7 @@
#define MAP_FILE 0
#endif /* !MAP_FILE */
+typedef unsigned long z_crc_t;
#ifdef HAVE_ZLIB
#include "zlib.h"
#include "crypt.h"
@@ -296,12 +297,12 @@ 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,