From e9d9a569677dd46a5c58f254383f99676cd0a024 Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 27 Mar 2024 10:21:36 +0000 Subject: [PATCH] zlib: sync with base --- sys/lib/libz/inflate.h | 2 +- sys/lib/libz/zconf.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/lib/libz/inflate.h b/sys/lib/libz/inflate.h index f127b6b1fa5..f758e0dcc18 100644 --- a/sys/lib/libz/inflate.h +++ b/sys/lib/libz/inflate.h @@ -100,7 +100,7 @@ struct inflate_state { unsigned char FAR *window; /* allocated sliding window, if needed */ /* bit accumulator */ unsigned long hold; /* input bit accumulator */ - unsigned bits; /* number of bits in "in" */ + unsigned bits; /* number of bits in hold */ /* for string and stored block copying */ unsigned length; /* literal or length of data to copy */ unsigned offset; /* distance back to copy string from */ diff --git a/sys/lib/libz/zconf.h b/sys/lib/libz/zconf.h index b3c057c4f12..22475032d63 100644 --- a/sys/lib/libz/zconf.h +++ b/sys/lib/libz/zconf.h @@ -513,6 +513,8 @@ typedef uLong FAR uLongf; #if !defined(_WIN32) && defined(Z_LARGE64) # define z_off64_t off64_t +#elif defined(__MINGW32__) +# define z_off64_t long long #elif defined(_WIN32) && !defined(__GNUC__) # define z_off64_t __int64 #elif defined(__GO32__) -- 2.20.1