diff mbox series

fixup! Provide zlib's uncompress2 from compat/zlib-compat.c

Message ID 20210902061219.44655-1-carenas@gmail.com (mailing list archive)
State New, archived
Headers show
Series fixup! Provide zlib's uncompress2 from compat/zlib-compat.c | expand

Commit Message

Carlo Marcelo Arenas Belón Sept. 2, 2021, 6:12 a.m. UTC
OpenBSD 7.0 (currently in beta) comes with zlib 1.2.11 and no longer needs
this compatibility layer.

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
---
 config.mak.uname | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/config.mak.uname b/config.mak.uname
index 019c88d5df..e3b7343ed2 100644
--- a/config.mak.uname
+++ b/config.mak.uname
@@ -256,7 +256,10 @@  ifeq ($(uname_S),FreeBSD)
 	FILENO_IS_A_MACRO = UnfortunatelyYes
 endif
 ifeq ($(uname_S),OpenBSD)
-	NO_UNCOMPRESS2 = YesPlease
+	# Versions < 7.0 need compatibility layer
+	ifeq ($(shell expr "$(uname_R)" : "[1-6]\."),2)
+		NO_UNCOMPRESS2 = UnfortunatelyYes
+	endif
 	NO_STRCASESTR = YesPlease
 	NO_MEMMEM = YesPlease
 	USE_ST_TIMESPEC = YesPlease