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: auth-3.3.1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88d9e99880a61bb22486c14e4860e0f183e26b53;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 0be7347b23..778c013550 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();