2
0
Эх сурвалжийг харах

Merge pull request #1634 from ilovezfs/older-zlib

unzip: fix build with older zlib
Kim Kulling 7 жил өмнө
parent
commit
6a1d2560ac
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 4 0
      contrib/unzip/unzip.c

+ 4 - 0
contrib/unzip/unzip.c

@@ -41,6 +41,10 @@ woven in by Terry Thorsen 1/2003.
 #include "zlib.h"
 #include "unzip.h"
 
+#if ZLIB_VERNUM < 0x1270
+typedef unsigned long z_crc_t;
+#endif
+
 #ifdef STDC
 #  include <stddef.h>
 #  include <string.h>