aboutsummaryrefslogblamecommitdiffstats
path: root/community/dnsdist/pdns-boost-containers-exception.patch
blob: 5e2ddd42aa91dddb36ed1e37ea3deb7a3b809b45 (plain) (tree)



















                                                                                
--- 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"