From 47ca872d418772a227f143ec17fe4341a7afaf75 Mon Sep 17 00:00:00 2001 From: Mikle Kolyada 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 --- 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