diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-03-27 10:21:37 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-03-27 10:21:37 +0000 |
commit | ed3bcc023bd71b230d227197d770b70b0c1de11c (patch) | |
tree | d23cbd49feac7c01d10d4a5da292ed3ea7eee446 /sys/lib | |
parent | 26d243603cc77e31b9e55dbb3e467f17f691b87c (diff) |
zlib: sync with base
Diffstat (limited to 'sys/lib')
-rw-r--r-- | sys/lib/libz/inflate.h | 2 | ||||
-rw-r--r-- | sys/lib/libz/zconf.h | 2 |
2 files changed, 3 insertions, 1 deletions
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__) |