From: bert hubert Date: Thu, 29 Sep 2016 17:51:34 +0000 (+0200) Subject: fix up packetcache not to use constexpr which upset clang (perhaps it is right) X-Git-Tag: auth-4.0.2~19^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=047e412ad6079f0f9a5cfc5ea3d11e258f2006ee;p=thirdparty%2Fpdns.git fix up packetcache not to use constexpr which upset clang (perhaps it is right) --- diff --git a/pdns/packetcache.cc b/pdns/packetcache.cc index 3e85ee62f4..331332cf16 100644 --- a/pdns/packetcache.cc +++ b/pdns/packetcache.cc @@ -30,6 +30,8 @@ #include #include +const unsigned int PacketCache::s_mincleaninterval, PacketCache::s_maxcleaninterval; + extern StatBag S; PacketCache::PacketCache() diff --git a/pdns/packetcache.hh b/pdns/packetcache.hh index 6035fbb7bf..e0d3b70c95 100644 --- a/pdns/packetcache.hh +++ b/pdns/packetcache.hh @@ -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; };