2
1

0004-Fix-undefined-reference-to-get_xkb.patch 861 B

123456789101112131415161718192021222324252627282930313233
  1. From b64a04250b1f35923434158beb6ddb5726b41eac Mon Sep 17 00:00:00 2001
  2. From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
  3. Date: Mon, 27 Oct 2014 10:34:38 +0100
  4. Subject: [PATCH 1/1] Fix undefined reference to get_xkb()
  5. When configuring Gtk+ with --disable-xkb, the build fails because of an
  6. undefined reference to get_xkb().
  7. This patch fixes this issue.
  8. Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
  9. ---
  10. gdk/x11/gdkkeys-x11.c | 2 ++
  11. 1 file changed, 2 insertions(+)
  12. diff --git a/gdk/x11/gdkkeys-x11.c b/gdk/x11/gdkkeys-x11.c
  13. index c45a971..6a5481b 100644
  14. --- a/gdk/x11/gdkkeys-x11.c
  15. +++ b/gdk/x11/gdkkeys-x11.c
  16. @@ -1498,8 +1498,10 @@ gdk_x11_keymap_map_virtual_modifiers (GdkKeymap *keymap,
  17. int i, j;
  18. gboolean retval;
  19. +#ifdef HAVE_XKB
  20. if (KEYMAP_USE_XKB (keymap))
  21. get_xkb (keymap_x11);
  22. +#endif
  23. retval = TRUE;
  24. --
  25. 1.9.1