]> granicus.if.org Git - pdns/commitdiff
fix lua 5.2 version check in luabackend
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 29 Nov 2013 06:39:47 +0000 (07:39 +0100)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 29 Nov 2013 06:39:47 +0000 (07:39 +0100)
modules/luabackend/reload.cc

index d8ab75cf672f4df047dca1d98d2cc825def04b3c..34db96a07db2976bde5a8bd8591082452f44ec54 100644 (file)
@@ -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();