$OpenBSD: patch-src_qt_src_corelib_global_qglobal_h,v 1.2 2017/03/02 17:30:15 espie Exp $
--- src/qt/src/corelib/global/qglobal.h.orig	Thu Oct 23 06:27:58 2014
+++ src/qt/src/corelib/global/qglobal.h	Thu Mar  2 16:05:59 2017
@@ -2402,7 +2402,7 @@ typedef uint Flags;
 
 #endif /* Q_NO_TYPESAFE_FLAGS */
 
-#if defined(Q_CC_GNU) && !defined(Q_CC_INTEL) && !defined(Q_CC_RVCT)
+#if defined(Q_CC_GNU) && !defined(Q_CC_INTEL) && !defined(Q_CC_RVCT) && !defined(Q_OS_OPENBSD)
 /* make use of typeof-extension */
 template <typename T>
 class QForeachContainer {
