summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixKey.c
diff options
context:
space:
mode:
authorstwo <stwo>2013-01-31 11:49:40 (GMT)
committerstwo <stwo>2013-01-31 11:49:40 (GMT)
commitf87865465eb042e0a72a84cffe3f1a9f60da99e6 (patch)
tree2b7a02eff512dc58baeb018bcc88c60535091845 /unix/tkUnixKey.c
parentb759e66206f54d4053c05aa250fd24e14809407e (diff)
downloadtk-f87865465eb042e0a72a84cffe3f1a9f60da99e6.zip
tk-f87865465eb042e0a72a84cffe3f1a9f60da99e6.tar.gz
tk-f87865465eb042e0a72a84cffe3f1a9f60da99e6.tar.bz2
Bug [3599928]: Use XkbKeycodeToKeysym if available.
Diffstat (limited to 'unix/tkUnixKey.c')
-rw-r--r--unix/tkUnixKey.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/unix/tkUnixKey.c b/unix/tkUnixKey.c
index b7fc97f..ef5b22c 100644
--- a/unix/tkUnixKey.c
+++ b/unix/tkUnixKey.c
@@ -11,7 +11,12 @@
*/
#include "tkInt.h"
-#include <X11/XKBlib.h>
+
+#ifdef HAVE_XKBKEYCODETOKEYSYM
+# include <X11/XKBlib.h>
+#else
+# define XkbKeycodeToKeysym(D,K,G,L) XKeycodeToKeysym(D,K,L)
+#endif
/*
* Prototypes for local functions defined in this file: