From: Pieter Lexis Date: Wed, 22 Apr 2015 13:16:54 +0000 (+0200) Subject: dnsdist: disable an extra function to fix compiles X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~88^2~10^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5b588073ffab0976f79789967af7a5cbbc70bb8;p=thirdparty%2Fpdns.git dnsdist: disable an extra function to fix compiles --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 643b16b7e9..d8deeb84de 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -603,7 +603,7 @@ vector> setupLua(bool client, const std::string& confi } return ret; }); -#endif + g_lua.writeFunction("getTopResponses", [](unsigned int top, unsigned int kind, boost::optional labels) { map counts; unsigned int total=0; @@ -653,6 +653,7 @@ vector> 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)");