diff --git a/math/qhull/patches/patch-src_libqhullcpp_QhullIterator_h b/math/qhull/patches/patch-src_libqhullcpp_QhullIterator_h new file mode 100644 index 00000000000..b8cc57310ff --- /dev/null +++ b/math/qhull/patches/patch-src_libqhullcpp_QhullIterator_h @@ -0,0 +1,23 @@ +$OpenBSD: patch-src_libqhullcpp_QhullIterator_h,v 1.1 2017/04/27 20:46:17 espie Exp $ +--- src/libqhullcpp/QhullIterator.h.orig Thu Apr 27 22:36:05 2017 ++++ src/libqhullcpp/QhullIterator.h Thu Apr 27 22:37:44 2017 +@@ -16,8 +16,19 @@ extern "C" { + #include + #include + #include ++#if defined(_LIBCPP_VERSION) ++// shut up clang ++# pragma GCC diagnostic push ++# pragma GCC diagnostic ignored "-Wc++11-extensions" ++_LIBCPP_BEGIN_NAMESPACE_STD ++ struct bidirectional_iterator_tag; ++ struct random_access_iterator_tag; ++_LIBCPP_END_NAMESPACE_STD ++# pragma GCC diagnostic pop ++#else + //! Avoid dependence on + namespace std { struct bidirectional_iterator_tag; struct random_access_iterator_tag; } ++#endif + + namespace orgQhull { + diff --git a/math/qhull/patches/patch-src_libqhullcpp_QhullLinkedList_h b/math/qhull/patches/patch-src_libqhullcpp_QhullLinkedList_h new file mode 100644 index 00000000000..f63038cf6d6 --- /dev/null +++ b/math/qhull/patches/patch-src_libqhullcpp_QhullLinkedList_h @@ -0,0 +1,24 @@ +$OpenBSD: patch-src_libqhullcpp_QhullLinkedList_h,v 1.1 2017/04/27 20:46:17 espie Exp $ +--- src/libqhullcpp/QhullLinkedList.h.orig Thu Apr 27 22:39:48 2017 ++++ src/libqhullcpp/QhullLinkedList.h Thu Apr 27 22:40:55 2017 +@@ -9,7 +9,20 @@ + #ifndef QHULLLINKEDLIST_H + #define QHULLLINKEDLIST_H + ++#include ++#if defined(_LIBCPP_VERSION) ++// shut up clang ++# pragma GCC diagnostic push ++# pragma GCC diagnostic ignored "-Wc++11-extensions" ++_LIBCPP_BEGIN_NAMESPACE_STD ++ struct bidirectional_iterator_tag; ++ struct random_access_iterator_tag; ++_LIBCPP_END_NAMESPACE_STD ++# pragma GCC diagnostic pop ++#else ++//! Avoid dependence on + namespace std { struct bidirectional_iterator_tag; struct random_access_iterator_tag; } ++#endif + + #include "QhullError.h" +