From f9b599355c3b537bcb48f734d0a98ed1c22566d2 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Tue, 12 Dec 2017 02:28:03 -0800 Subject: [PATCH] unzip: fix build with older zlib Fixes "unzip.c:150:11: error: unknown type name 'z_crc_t'" --- contrib/unzip/unzip.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/unzip/unzip.c b/contrib/unzip/unzip.c index e8b62e763..fea6e8913 100644 --- a/contrib/unzip/unzip.c +++ b/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 # include