]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
unbreak openbsd compilation
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 8 Jun 2016 04:57:22 +0000 (04:57 +0000)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 8 Jun 2016 09:44:59 +0000 (11:44 +0200)
pdns/dnsname.hh

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