summaryrefslogtreecommitdiff
blob: ae6da9f2834ebbfeaaed62827315800b1d4f9bc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 7fb47babef2c947ad937d9e8e36842122459342c Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 20 Nov 2023 23:05:35 +0000
Subject: [PATCH] relax zlib check to just major version, following debian

git-svn-id: svn://tug.org/texlive/trunk/Build/source@68922 c570f23f-e606-0410-a88d-b1316a301751
---
 texk/web2c/luatexdir/luazlib/lzlib.c | 2 +-
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/texk/web2c/luatexdir/luazlib/lzlib.c b/texk/web2c/luatexdir/luazlib/lzlib.c
index e61f92d580e2..ea123e54126f 100644
--- a/texk/web2c/luatexdir/luazlib/lzlib.c
+++ b/texk/web2c/luatexdir/luazlib/lzlib.c
@@ -546,7 +546,7 @@ LUALIB_API int luaopen_zlib(lua_State *L)
 
     /* make sure header and library version are consistent */
     const char* version = zlibVersion();
-    if (strncmp(version, ZLIB_VERSION, 4))
+    if (strncmp(version, ZLIB_VERSION, 2))
     {
         lua_pushfstring(L, "zlib library version does not match - header: %s, library: %s", ZLIB_VERSION, version);
         lua_error(L);
-- 
2.41.0