]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
On OpenBSD string_view is both in boost and std
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 20 Mar 2020 11:58:05 +0000 (12:58 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 20 Mar 2020 13:19:30 +0000 (14:19 +0100)
pdns/dnsdistdist/views.hh

index afd72f6c2e29b4dd6022498ffebba1d84ae24cbc..d2b1dcb9e34899727d277af3f4e50b399703532d 100644 (file)
@@ -23,7 +23,7 @@
 #pragma once
 
 // apple compiler somehow has string_view even in c++11!
-#if __cplusplus < 201703L && !defined(__APPLE__)
+#if __cplusplus < 201703L && !defined(__APPLE__) && !defined(__OpenBSD__)
 #include <boost/version.hpp>
 #if BOOST_VERSION >= 106100
 #include <boost/utility/string_view.hpp>