[master] 76e5f90e6 Cherry pick 545f194963 from madler/zlib
Poul-Henning Kamp
phk at FreeBSD.org
Mon Sep 23 13:45:06 UTC 2024
commit 76e5f90e689fce9237615906aecac51006304e8b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Sep 23 13:41:41 2024 +0000
Cherry pick 545f194963 from madler/zlib
Add old gcc ULONG_LONG_MAX macro to find a 64-bit type in zutil.h.
diff --git a/lib/libvgz/zutil.h b/lib/libvgz/zutil.h
index a74201f02..c095a04d1 100644
--- a/lib/libvgz/zutil.h
+++ b/lib/libvgz/zutil.h
@@ -48,6 +48,8 @@ typedef unsigned long ulg;
# define Z_U8 unsigned long
# elif (ULLONG_MAX == 0xffffffffffffffff)
# define Z_U8 unsigned long long
+# elif (ULONG_LONG_MAX == 0xffffffffffffffff)
+# define Z_U8 unsigned long long
# elif (UINT_MAX == 0xffffffffffffffff)
# define Z_U8 unsigned
# endif
More information about the varnish-commit
mailing list