$OpenBSD: patch-src_corelib_global_qglobal_h,v 1.2 2007/05/22 09:09:32 espie Exp $
--- src/corelib/global/qglobal.h.orig	Sun May  6 17:54:22 2007
+++ src/corelib/global/qglobal.h	Sun May 13 16:27:01 2007
@@ -1803,7 +1803,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 {
