summaryrefslogtreecommitdiffstats
path: root/isys/lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'isys/lang.c')
-rw-r--r--isys/lang.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/isys/lang.c b/isys/lang.c
index 453176ebc..4625a6b51 100644
--- a/isys/lang.c
+++ b/isys/lang.c
@@ -89,6 +89,8 @@ int loadKeymap(gzFile stream) {
#endif
if (isVioConsole())
return 0;
+ if (!access("/proc/xen", R_OK)) /* xen can't load keymaps */
+ return 0;
/* assume that if we're already on a pty loading a keymap is silly */
fstat(0, &sb);