diff --git a/xcbutils.h b/xcbutils.h
index 09f8e8dc8d..92a17f3359 100644
--- a/xcbutils.h
+++ b/xcbutils.h
@@ -29,7 +29,11 @@ along with this program. If not, see .
#include
#include
+#define class class_name //HACK: work around a non-C++ safe problem in xcb_iccm.h
+ //where they put a variable called "class" in function signatures.
+ //Needed at least for xcb v0.3.8
#include
+#undef class //UNDO HACK
namespace KWin {