From: Peter van Dijk Date: Tue, 24 Jun 2014 10:33:10 +0000 (+0200) Subject: use correct luaL_openlib replacement for 5.2, fixes #1353 X-Git-Tag: auth-3.4.0-rc1~123 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d06b128d66c25b3a704060ce2ac16ff9e7952b3;p=pdns use correct luaL_openlib replacement for 5.2, fixes #1353 --- diff --git a/pdns/lua-auth.cc b/pdns/lua-auth.cc index 9155ea18d..05d8c8209 100644 --- a/pdns/lua-auth.cc +++ b/pdns/lua-auth.cc @@ -199,7 +199,7 @@ void AuthLua::registerLuaDNSPacket(void) { lua_pushvalue(d_lua, -2); /* pushes the metatable */ lua_settable(d_lua, -3); /* metatable.__index = metatable */ - luaL_newlib(d_lua, ldp_methods); + luaL_setfuncs(d_lua, ldp_methods, 0); lua_pop(d_lua, 1); }