]> granicus.if.org Git - pdns/commitdiff
dnsdist: disable an extra function to fix compiles
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 22 Apr 2015 13:16:54 +0000 (15:16 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 22 Apr 2015 13:16:54 +0000 (15:16 +0200)
pdns/dnsdist-lua.cc

index 643b16b7e9ddca61aa003866d6897df590239f2d..d8deeb84de22de0cbd7b26e4d2baa9f6e8f86412 100644 (file)
@@ -603,7 +603,7 @@ vector<std::function<void(void)>> setupLua(bool client, const std::string& confi
       }
       return ret;
     });
-#endif
+
   g_lua.writeFunction("getTopResponses", [](unsigned int top, unsigned int kind, boost::optional<int> labels) {
       map<DNSName, int> counts;
       unsigned int total=0;
@@ -653,6 +653,7 @@ vector<std::function<void(void)>> setupLua(bool client, const std::string& confi
 
     });
   
+#endif
   g_lua.executeCode(R"(function topResponses(top, kind, labels) for k,v in ipairs(getTopResponses(top, kind, labels)) do show(string.format("%4d  %-40s %4d %4.1f%%",k,v[1],v[2], v[3])) end end)");