$OpenBSD: patch-src_corelib_global_qglobal_h,v 1.17 2014/07/12 11:10:14 dcoppa Exp $
--- src/corelib/global/qglobal.h.orig	Thu Apr 10 20:37:11 2014
+++ src/corelib/global/qglobal.h	Tue May 13 11:25:38 2014
@@ -2367,7 +2367,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 {
