From: Bert Hubert Date: Tue, 6 Nov 2012 10:14:52 +0000 (+0000) Subject: lua backend detected older lua versions with a weird #ifdef that could not have worke... X-Git-Tag: auth-3.2-rc1~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f5ab13ce35eb9dfab7ea29e5189df9116fc946c;p=pdns lua backend detected older lua versions with a weird #ifdef that could not have worked, I'm assuming older lua's are still broken. git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2854 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/modules/luabackend/reload.cc b/modules/luabackend/reload.cc index 1d6850bf9..0be7347b2 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"); -#ifdef LUA_VERSION_MAJOR == 5 && LUA_VERSION_MINOR > 1 +#if LUA_VERSION_MAJOR == 5 && LUA_VERSION_MINOR > 1 lua = luaL_newstate(); #else lua = lua_open();