summaryrefslogtreecommitdiff
blob: f6c1fd3209fa32ad4b845fb30961506a0dfbc118 (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
27
28
29
30
31
32
33
34
35
From 47ca872d418772a227f143ec17fe4341a7afaf75 Mon Sep 17 00:00:00 2001
From: Mikle Kolyada <zlogene@gentoo.org>
Date: Sun, 2 Jun 2019 14:16:09 +0300
Subject: [PATCH 4/6] remove luazlib zlib header check

https://bugs.gentoo.org/show_bug.cgi?id=310487
https://bugs.gentoo.org/show_bug.cgi?id=605766

Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
---
 texk/web2c/luatexdir/luazlib/lzlib.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/texk/web2c/luatexdir/luazlib/lzlib.c b/texk/web2c/luatexdir/luazlib/lzlib.c
index e61f92d5..b03e14d4 100644
--- a/texk/web2c/luatexdir/luazlib/lzlib.c
+++ b/texk/web2c/luatexdir/luazlib/lzlib.c
@@ -544,14 +544,6 @@ 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))
-    {
-        lua_pushfstring(L, "zlib library version does not match - header: %s, library: %s", ZLIB_VERSION, version);
-        lua_error(L);
-    }
-
     /* create new metatable for zlib compression structures */
     luaL_newmetatable(L, ZSTREAMMETA);
     lua_pushliteral(L, "__index");
-- 
2.21.0