]> granicus.if.org Git - pdns/commitdiff
auth: fix el6 build, histograms are too sophisticated for boost 1.41
authorKees Monshouwer <mind04@monshouwer.org>
Wed, 10 Oct 2018 09:39:35 +0000 (11:39 +0200)
committermind04 <mind04@monshouwer.org>
Wed, 10 Oct 2018 11:00:13 +0000 (13:00 +0200)
pdns/dnsscope.cc

index 3526bff5957232aef4079c2488c4e91b15675c47..8e46b4b785869630db902147ae25f77ce3469686 100644 (file)
@@ -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<bool>(), "If set to true, only process RD packets, to false only non-RD, unset: both")
     ("ipv4", po::value<bool>()->default_value(true), "Process IPv4 packets")
     ("ipv6", po::value<bool>()->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<double>(), "Write a log-histogram to file 'full-histogram' with this millisecond bin size")
+#endif
     ("load-stats,l", po::value<string>()->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<string>()+"/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<double>(), loglog);
   }
+#endif
 
   
   sum=0;