$OpenBSD: patch-src_corelib_global_qglobal_h,v 1.15 2012/06/14 09:38:35 espie Exp $
--- src/corelib/global/qglobal.h.orig	Thu Apr 26 21:46:08 2012
+++ src/corelib/global/qglobal.h	Sun Jun 10 13:25:08 2012
@@ -2336,7 +2336,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 {
