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 +#else # include #endif