summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@digia.com>2013-05-15 09:05:39 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-22 15:24:02 +0200
commita53e929889d1db7c7a6906c143d821f35a661329 (patch)
tree7859ea6f4557def019cd11db61f2e63f5609027b /src
parentf3aad61120d5cc8029c7092b1f74e2b5b632f99b (diff)
Fixed XCB build with -no-opengl
Task-number: QTBUG-30115 Change-Id: I1651a1cdda2a5370e23fabe631b0742a617631c0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/xcb/qxcbnativeinterface.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbnativeinterface.cpp b/src/plugins/platforms/xcb/qxcbnativeinterface.cpp
index da60cfd2bd..7d832a1c08 100644
--- a/src/plugins/platforms/xcb/qxcbnativeinterface.cpp
+++ b/src/plugins/platforms/xcb/qxcbnativeinterface.cpp
@@ -58,7 +58,9 @@
#include "qglxintegration.h"
#endif
-#ifndef XCB_USE_XLIB
+#ifdef XCB_USE_XLIB
+# include <X11/Xlib.h>
+#else
# include <stdio.h>
#endif