Fix compilation on Harmattan
authorSimon Hausmann <simon.hausmann@nokia.com>
Mon, 3 Oct 2011 14:40:01 +0000 (16:40 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 3 Oct 2011 15:25:57 +0000 (17:25 +0200)
Improved fix from e327401743dba9112faca77fd764869709ae4367 to add the
necessary includes in the header file, where the types are also needed.
The same header file is also included from the xcb plugin.

Change-Id: I52a891be1ecc67d49a088a4db698270a06db6b54
Reviewed-on: http://codereview.qt-project.org/5932
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/platformsupport/eglconvenience/qxlibeglintegration.cpp
src/platformsupport/eglconvenience/qxlibeglintegration_p.h

index e9eb0ba..aeebd35 100644 (file)
@@ -39,9 +39,6 @@
 **
 ****************************************************************************/
 
-#include <X11/X.h>
-#include <X11/Xlib.h>
-#include <X11/Xutil.h>
 #include "qxlibeglintegration_p.h"
 
 static int countBits(unsigned long mask)
index cce3947..ad77754 100644 (file)
@@ -43,6 +43,9 @@
 #define QTESTLITEEGLINTEGRATION_H
 
 #include "qeglconvenience_p.h"
+#include <X11/X.h>
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
 
 class QXlibEglIntegration
 {