From: Peter van Dijk Date: Wed, 8 Jun 2016 04:57:22 +0000 (+0000) Subject: unbreak openbsd compilation X-Git-Tag: auth-4.0.0-rc1~2^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9186ca18b72d2b0f29e9be6fe8cda6c000b94bc;p=thirdparty%2Fpdns.git unbreak openbsd compilation --- 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;