]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
fix up packetcache not to use constexpr which upset clang (perhaps it is right)
authorbert hubert <bert.hubert@netherlabs.nl>
Thu, 29 Sep 2016 17:51:34 +0000 (19:51 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Thu, 29 Sep 2016 17:51:34 +0000 (19:51 +0200)
pdns/packetcache.cc
pdns/packetcache.hh

index 92b93d4d33ea769dae7bb51682e7459fb1fad521..9a9283ad64657cac9f64aefa6de88a93d95caae6 100644 (file)
@@ -30,6 +30,8 @@
 #include <map>
 #include <boost/algorithm/string.hpp>
 
+const unsigned int PacketCache::s_mincleaninterval, PacketCache::s_maxcleaninterval;
+
 extern StatBag S;
 
 PacketCache::PacketCache()
index a80e744861d888d7be340b1deafc3b9c51f817cb..8949b6f0d423c5f88cd666a906d2094ab8b7135e 100644 (file)
@@ -159,7 +159,7 @@ private:
   int d_recursivettl;
   bool d_doRecursion;
 
-  static constexpr unsigned int s_mincleaninterval=1000, s_maxcleaninterval=300000;
+  static const unsigned int s_mincleaninterval=1000, s_maxcleaninterval=300000;
 };