ports/dns/powerdns-recursor40/files/patch-dnsname.hh
Kirill Ponomarev 907a009a91 Add new port dns/powerdns-recursor40
FreeBSD 10.3 and below doesn't support __cxa_thread_atexit() in
libc, which is required for building PowerDNS Recursor 4.1.0.

This new port follows the 4.0.x branch, which has no such
requirement.

PR:		224297
Submitted by:	tremere@cainites.net
Approved by:	mat
Differential Revision: https://reviews.freebsd.org/D13540
2017-12-19 21:42:36 +00:00

20 lines
768 B
C++

--- dnsname.hh.orig 2017-01-17 03:18:41 UTC
+++ dnsname.hh
@@ -30,7 +30,7 @@
#include <boost/version.hpp>
// it crashes on OSX and doesn't compile on OpenBSD
-#if BOOST_VERSION >= 105300 && ! defined( __APPLE__ ) && ! defined(__OpenBSD__)
+#if BOOST_VERSION >= 105300 && ! defined(_LIBCPP_VERSION) && ! defined(__OpenBSD__)
#include <boost/container/string.hpp>
#endif
@@ -133,7 +133,7 @@ public:
inline bool canonCompare(const DNSName& rhs) const;
bool slowCanonCompare(const DNSName& rhs) const;
-#if BOOST_VERSION >= 105300 && ! defined( __APPLE__ ) && ! defined(__OpenBSD__)
+#if BOOST_VERSION >= 105300 && ! defined(_LIBCPP_VERSION) && ! defined(__OpenBSD__)
typedef boost::container::string string_t;
#else
typedef std::string string_t;