$OpenBSD: patch-src_corelib_global_qglobal_h,v 1.11 2010/06/21 16:40:52 espie Exp $
--- src/corelib/global/qglobal.h.orig	Wed Jun  2 04:03:17 2010
+++ src/corelib/global/qglobal.h	Mon Jun 21 11:32:32 2010
@@ -2216,7 +2216,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 {
