From: Peter van Dijk Date: Fri, 29 Nov 2013 06:39:47 +0000 (+0100) Subject: fix lua 5.2 version check in luabackend X-Git-Tag: rec-3.6.0-rc1~326 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3f9941efa17bc04a8b0093840ec88d092162ce4;p=thirdparty%2Fpdns.git fix lua 5.2 version check in luabackend --- diff --git a/modules/luabackend/reload.cc b/modules/luabackend/reload.cc index d8ab75cf67..34db96a07d 100644 --- a/modules/luabackend/reload.cc +++ b/modules/luabackend/reload.cc @@ -62,7 +62,7 @@ void LUABackend::reload() { logging = ::arg().mustDo("query-logging") || mustDo("logging-query"); -#if LUA_VERSION_MAJOR == 5 && LUA_VERSION_MINOR > 1 +#if LUA_VERSION_NUM >= 502 lua = luaL_newstate(); #else lua = lua_open();