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: dnsdist-1.1.0-beta2~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcc34b2c33c2c6ab67ccfd285c1182272865175c;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 92b93d4d33..9a9283ad64 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 a80e744861..8949b6f0d4 100644 --- a/pdns/packetcache.hh +++ b/pdns/packetcache.hh @@ -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; };