]> granicus.if.org Git - pdns/commitdiff
lua backend detected older lua versions with a weird #ifdef that could not have worke...
authorBert Hubert <bert.hubert@netherlabs.nl>
Tue, 6 Nov 2012 10:14:52 +0000 (10:14 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Tue, 6 Nov 2012 10:14:52 +0000 (10:14 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2854 d19b8d6e-7fed-0310-83ef-9ca221ded41b

modules/luabackend/reload.cc

index 1d6850bf90002e307d81790dfb1f575c1afe287f..0be7347b231ea8e7706b0c2a7a640b638eb4aff0 100644 (file)
@@ -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();