$OpenBSD: patch-src_corelib_global_qglobal_h,v 1.13 2011/04/03 13:35:31 dcoppa Exp $
--- src/corelib/global/qglobal.h.orig	Tue Feb 22 13:04:00 2011
+++ src/corelib/global/qglobal.h	Tue Mar 29 14:02:18 2011
@@ -2240,7 +2240,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 {
