$OpenBSD: patch-src_corelib_global_qglobal_h,v 1.8 2009/06/08 13:55:28 espie Exp $
--- src/corelib/global/qglobal.h.orig	Wed Apr 22 01:57:41 2009
+++ src/corelib/global/qglobal.h	Sun Jun  7 12:40:52 2009
@@ -2042,7 +2042,7 @@ typedef uint Flags;
 
 #endif /* Q_NO_TYPESAFE_FLAGS */
 
-#if defined(Q_CC_GNU) && !defined(Q_CC_INTEL)
+#if defined(Q_CC_GNU) && !defined(Q_CC_INTEL) && !defined(Q_OS_OPENBSD)
 /* make use of typeof-extension */
 template <typename T>
 class QForeachContainer {
