summaryrefslogtreecommitdiffstats
path: root/config.tests/qpa
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-06-06 17:40:10 +0200
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-06-06 16:13:05 +0000
commit1816b53138bfa63761921fb3ec3d6566b3dcf4ab (patch)
treefb2ce04fa41ebf0eb3d137b776147803e88592e1 /config.tests/qpa
parent95ea1b1aa8d71889bce87c76bb1a996c0f2b58f4 (diff)
make the xcb-xkb compile test more specific
try hard to detect only 1.10 and up. Change-Id: I14517a42b810604f65c07df74f2ef9e840393a38 Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'config.tests/qpa')
-rw-r--r--config.tests/qpa/xcb-xkb/xcb-xkb.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.tests/qpa/xcb-xkb/xcb-xkb.cpp b/config.tests/qpa/xcb-xkb/xcb-xkb.cpp
index 6a88944aee..9685649633 100644
--- a/config.tests/qpa/xcb-xkb/xcb-xkb.cpp
+++ b/config.tests/qpa/xcb-xkb/xcb-xkb.cpp
@@ -51,6 +51,9 @@ int main(int, char **)
xcb_connection_t *connection = xcb_connect("", &primaryScreen);
+ // This takes more arguments in xcb-xkb < 1.10.
+ xcb_xkb_get_kbd_by_name_unchecked(NULL, 0, 0, 0, 0);
+
// This won't compile unless libxcb >= 1.5 which defines XCB_ATOM_PRIMARY.
int xcbAtomPrimary = XCB_ATOM_PRIMARY;