From c9186ca18b72d2b0f29e9be6fe8cda6c000b94bc Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Wed, 8 Jun 2016 04:57:22 +0000 Subject: [PATCH] unbreak openbsd compilation --- pdns/dnsname.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdns/dnsname.hh b/pdns/dnsname.hh index f2311655ab..f44a3b0121 100644 --- a/pdns/dnsname.hh +++ b/pdns/dnsname.hh @@ -8,8 +8,8 @@ #include -// 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 #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; -- 2.47.2