]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Proper include guard for OpenBSD and FreeBSD: std::string_ref is available there. 8955/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 23 Mar 2020 07:12:33 +0000 (08:12 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 23 Mar 2020 07:12:33 +0000 (08:12 +0100)
ext/lmdb-safe/lmdb-safe.hh

index e5fe14a1dea63098ee9cfd35cbaf68d5e4099d4f..056a6cd823dfb208eab7dae21619e5f781e94e48 100644 (file)
@@ -13,7 +13,7 @@
 #include <algorithm>
 
 // apple compiler somehow has string_view even in c++11!
-#if __cplusplus < 201703L && !defined(__APPLE__)
+#if __cplusplus < 201703L && !defined(__APPLE__) && !defined(__OpenBSD__) && !defined(__FreeBSD__)
 #include <boost/version.hpp>
 #if BOOST_VERSION >= 106100
 #include <boost/utility/string_view.hpp>