]> granicus.if.org Git - pdns/commitdiff
Fix el6 builds
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 2 Nov 2018 09:04:34 +0000 (10:04 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 2 Nov 2018 09:04:34 +0000 (10:04 +0100)
Boost 1.48 does not play nice with the storage used for dnsname.

pdns/dnsname.hh

index fa7f46a8d601536a073b373bf3d7f02e856f41b8..ae0c1ddad959af4d183af56791cd03bdbc5597d9 100644 (file)
@@ -30,7 +30,7 @@
 #include <boost/version.hpp>
 
 // it crashes on OSX and doesn't compile on OpenBSD
-#if BOOST_VERSION >= 104800 && ! defined( __APPLE__ ) && ! defined(__OpenBSD__)
+#if BOOST_VERSION >= 105300 && ! defined( __APPLE__ ) && ! defined(__OpenBSD__)
 #include <boost/container/string.hpp>
 #endif
 
@@ -136,7 +136,7 @@ public:
   inline bool canonCompare(const DNSName& rhs) const;
   bool slowCanonCompare(const DNSName& rhs) const;  
 
-#if BOOST_VERSION >= 104800 && ! defined( __APPLE__ ) && ! defined(__OpenBSD__)
+#if BOOST_VERSION >= 105300 && ! defined( __APPLE__ ) && ! defined(__OpenBSD__)
   typedef boost::container::string string_t;
 #else
   typedef std::string string_t;