]> granicus.if.org Git - pdns/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)
committermind04 <mind04@monshouwer.org>
Sat, 1 Oct 2016 16:51:36 +0000 (18:51 +0200)
pdns/packetcache.cc
pdns/packetcache.hh

index 3e85ee62f4418aae8fef1863d75afa41c75ca1a9..331332cf1696e8236cdf1bc608943dcc83862a45 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 6035fbb7bfbf85181875476bd6780b9233e35829..e0d3b70c955d42cf55687b5963853c0ad5bd87b5 100644 (file)
@@ -151,7 +151,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;
 };