From 75709ae872c3e6dbf9d9ce3e3134b2470ad25d6e Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Wed, 10 Oct 2018 11:39:35 +0200 Subject: [PATCH] auth: fix el6 build, histograms are too sophisticated for boost 1.41 --- pdns/dnsscope.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pdns/dnsscope.cc b/pdns/dnsscope.cc index 3526bff595..8e46b4b785 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; -- 2.47.2