$OpenBSD: patch-src_corelib_global_qglobal_h,v 1.14 2011/09/07 09:54:07 espie Exp $
--- src/corelib/global/qglobal.h.orig	Tue Aug 23 14:02:27 2011
+++ src/corelib/global/qglobal.h	Mon Sep  5 11:19:03 2011
@@ -2243,7 +2243,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 {
