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

unzip: fix build with older zlib

Fixes "unzip.c:150:11: error: unknown type name 'z_crc_t'"
ilovezfs 7 жил өмнө
parent
commit
f9b599355c
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>