From: Kees Monshouwer Date: Wed, 10 Oct 2018 09:39:35 +0000 (+0200) Subject: auth: fix el6 build, histograms are too sophisticated for boost 1.41 X-Git-Tag: dnsdist-1.3.3~48^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75709ae872c3e6dbf9d9ce3e3134b2470ad25d6e;p=pdns auth: fix el6 build, histograms are too sophisticated for boost 1.41 --- diff --git a/pdns/dnsscope.cc b/pdns/dnsscope.cc index 3526bff59..8e46b4b78 100644 --- a/pdns/dnsscope.cc +++ b/pdns/dnsscope.cc @@ -23,7 +23,9 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif +#if HAVE_BOOST_GE_148 #include "histog.hh" +#endif #include "statbag.hh" #include "dnspcap.hh" @@ -138,8 +140,10 @@ try ("rd", po::value(), "If set to true, only process RD packets, to false only non-RD, unset: both") ("ipv4", po::value()->default_value(true), "Process IPv4 packets") ("ipv6", po::value()->default_value(true), "Process IPv6 packets") +#if HAVE_BOOST_GE_148 ("log-histogram", "Write a log-histogram to file 'log-histogram'") ("full-histogram", po::value(), "Write a log-histogram to file 'full-histogram' with this millisecond bin size") +#endif ("load-stats,l", po::value()->default_value(""), "if set, emit per-second load statistics (questions, answers, outstanding)") ("no-servfail-stats", "Don't include servfails in response time stats") ("servfail-tree", "Figure out subtrees that generate servfails") @@ -431,6 +435,7 @@ try cout.precision(4); sum=0; +#if HAVE_BOOST_GE_148 if(g_vm.count("log-histogram")) { string fname = g_vm["stats-dir"].as()+"/log-histogram"; ofstream loglog(fname); @@ -447,6 +452,7 @@ try throw runtime_error("Unable to write statistics to "+fname); writeFullHistogramFile(cumul, g_vm["full-histogram"].as(), loglog); } +#endif sum=0;