$OpenBSD: patch-src_corelib_global_qglobal_h,v 1.6 2008/10/21 22:20:00 espie Exp $
--- src/corelib/global/qglobal.h.orig	Sat Sep 27 10:58:46 2008
+++ src/corelib/global/qglobal.h	Mon Oct 20 14:57:36 2008
@@ -1956,7 +1956,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 {
