@@ -, +, @@ --- dns/powerdns-recursor/Makefile | 1 + dns/powerdns-recursor/files/patch-dnsname.hh | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 dns/powerdns-recursor/files/patch-dnsname.hh --- b/dns/powerdns-recursor/Makefile +++ b/dns/powerdns-recursor/Makefile @@ -3,6 +3,7 @@ PORTNAME= recursor PORTVERSION= 4.0.3 +PORTREVISION= 1 CATEGORIES= dns ipv6 MASTER_SITES= http://downloads.powerdns.com/releases/ PKGNAMEPREFIX= powerdns- --- /dev/null +++ b/dns/powerdns-recursor/files/patch-dnsname.hh @@ -0,0 +1,20 @@ +--- dnsname.hh.orig 2016-09-06 12:50:29 UTC ++++ dnsname.hh +@@ -30,7 +30,7 @@ + #include + + // it crashes on OSX and doesn't compile on OpenBSD +-#if BOOST_VERSION >= 104800 && ! defined( __APPLE__ ) && ! defined(__OpenBSD__) ++#if BOOST_VERSION >= 104800 && ! defined(_LIBCPP_VERSION) && ! defined(__OpenBSD__) + #include + #endif + +@@ -133,7 +133,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 >= 104800 && ! defined(_LIBCPP_VERSION) && ! defined(__OpenBSD__) + typedef boost::container::string string_t; + #else + typedef std::string string_t;