$OpenBSD: patch-src_corelib_global_qglobal_h,v 1.18 2015/06/03 07:28:01 dcoppa Exp $
--- src/corelib/global/qglobal.h.orig	Thu May  7 16:14:48 2015
+++ src/corelib/global/qglobal.h	Sun May 31 13:28:28 2015
@@ -2482,7 +2482,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 {
