summaryrefslogtreecommitdiff
path: root/x11/xkbset/patches/patch-ab
diff options
context:
space:
mode:
authorhubertf <hubertf>2002-09-25 10:23:44 +0000
committerhubertf <hubertf>2002-09-25 10:23:44 +0000
commit3771a15b584dbc99cd28e09ed8e747778e3fa05a (patch)
tree084632c946f4ec4da3a6b8b397b941c96bb659be /x11/xkbset/patches/patch-ab
parentdbb8190fa5eda6dbdf8447eaab5f7fc96383c491 (diff)
downloadpkgsrc-3771a15b584dbc99cd28e09ed8e747778e3fa05a.tar.gz
Fix PR 18412: x11/xkbset dumps core if the XKB extension is not loaded
Diffstat (limited to 'x11/xkbset/patches/patch-ab')
-rw-r--r--x11/xkbset/patches/patch-ab15
1 files changed, 15 insertions, 0 deletions
diff --git a/x11/xkbset/patches/patch-ab b/x11/xkbset/patches/patch-ab
new file mode 100644
index 00000000000..6f93803331a
--- /dev/null
+++ b/x11/xkbset/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1 2002/09/25 10:23:45 hubertf Exp $
+
+--- main.c.orig Thu Aug 17 06:36:15 2000
++++ main.c
+@@ -91,6 +91,10 @@
+ }
+
+ xkb = XkbGetKeyboard(display,XkbControlsMask,XkbUseCoreKbd);
++ if (xkb == 0) {
++ fprintf(stderr, "XKB not supported for display %s\n", getenv("DISPLAY"));
++ exit(1);
++ }
+ XkbGetControls(display, XkbAccessXTimeoutMask|XkbAllControlsMask, xkb);
+
+ if (query) {