aboutsummaryrefslogtreecommitdiffstats
path: root/community/dnsdist/pdns-boost-containers-exception.patch
diff options
context:
space:
mode:
authorPeter van Dijk <peter.van.dijk@powerdns.com>2021-04-23 22:48:23 +0200
committerLeo <thinkabit.ukim@gmail.com>2021-04-23 21:23:53 +0000
commit9b9f4c5a570d0a10b83bd3b8647b6d33cc0f824b (patch)
treea0bf8cb587e29ade1862f0d71c8818103efaca09 /community/dnsdist/pdns-boost-containers-exception.patch
parent7be72c23d2c45a8a09c20c0bd37f4f6f80d0ee35 (diff)
community/dnsdist: add patch to fix container exceptions in boost 1.76
Diffstat (limited to 'community/dnsdist/pdns-boost-containers-exception.patch')
-rw-r--r--community/dnsdist/pdns-boost-containers-exception.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/dnsdist/pdns-boost-containers-exception.patch b/community/dnsdist/pdns-boost-containers-exception.patch
new file mode 100644
index 00000000000..5e2ddd42aa9
--- /dev/null
+++ b/community/dnsdist/pdns-boost-containers-exception.patch
@@ -0,0 +1,20 @@
+--- a/dnsname.hh
++++ b/dnsname.hh
+@@ -35,6 +35,7 @@
+
+ // it crashes on OSX and doesn't compile on OpenBSD
+ #if BOOST_VERSION >= 105300 && ! defined( __APPLE__ ) && ! defined(__OpenBSD__)
++#define BOOST_CONTAINER_USE_STD_EXCEPTIONS
+ #include <boost/container/string.hpp>
+ #endif
+
+--- a/dnswriter.cc
++++ b/dnswriter.cc
+@@ -24,6 +24,7 @@
+ #endif
+ #include <boost/version.hpp>
+ #if BOOST_VERSION >= 105400
++#define BOOST_CONTAINER_USE_STD_EXCEPTIONS
+ #include <boost/container/static_vector.hpp>
+ #endif
+ #include "dnswriter.hh"