[vlc-devel] [PATCH] qt: fix build when QT5_HAS_XCB but !QT5_HAS_X11

Tristan Matthews tmatth at videolan.org
Tue May 16 07:24:07 CEST 2017


Fixes "error: ‘xcb_generic_event_t’ does not name a type", etc.

---
 modules/gui/qt/components/interface_widgets.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/components/interface_widgets.cpp b/modules/gui/qt/components/interface_widgets.cpp
index b3b9b28..9ddeba8 100644
--- a/modules/gui/qt/components/interface_widgets.cpp
+++ b/modules/gui/qt/components/interface_widgets.cpp
@@ -53,9 +53,9 @@
 #if defined (QT5_HAS_X11)
 # include <X11/Xlib.h>
 # include <QX11Info>
-# if defined(QT5_HAS_XCB)
-#  include <xcb/xproto.h>
-# endif
+#endif
+#if defined(QT5_HAS_XCB)
+# include <xcb/xproto.h>
 #endif
 #ifdef QT5_HAS_WAYLAND
 # include QPNI_HEADER
-- 
2.7.4



More information about the vlc-devel mailing list