summaryrefslogtreecommitdiff
path: root/x11/accessx
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-02-05 18:33:41 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-02-05 18:33:41 +0000
commit4be9bd4f717167bf739efe076e86a81feee53125 (patch)
tree69a34fc076b90e031a24e540091dbdcbac54a884 /x11/accessx
parentUpgrade to the version that works with drupal 4.7.x. (diff)
- Fix build on amd64 and gcc4
PR: ports/108720 Submitted by: Stephen Montgomery-Smith <stephen at math.missouri.edu> (maintainer)
Notes
Notes: svn path=/head/; revision=184290
Diffstat (limited to 'x11/accessx')
-rw-r--r--x11/accessx/files/patch-Access.C22
1 files changed, 20 insertions, 2 deletions
diff --git a/x11/accessx/files/patch-Access.C b/x11/accessx/files/patch-Access.C
index 05b288fdea2a..dc50b39dd53d 100644
--- a/x11/accessx/files/patch-Access.C
+++ b/x11/accessx/files/patch-Access.C
@@ -1,5 +1,5 @@
---- Access.C.orig Mon Dec 16 20:35:51 2002
-+++ Access.C Mon Dec 16 20:36:29 2002
+--- Access.C.orig Tue Mar 13 23:39:55 2001
++++ Access.C Tue Jan 30 22:18:00 2007
@@ -21,6 +21,8 @@
#include <X11/XKBlib.h>
#include "Access.h"
@@ -9,3 +9,21 @@
//
// Access()
//
+@@ -152,7 +154,7 @@
+ //Get the state of the keyboard.
+
+ XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd);
+- if ((int)xkb == BadAlloc || xkb == NULL)
++ if (xkb == NULL)
+ {
+ return 5; /*AccessKeyboardQueryFailure;*/
+ }
+@@ -261,7 +263,7 @@
+ //Get the state of the keyboard.
+
+ XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd);
+- if ((int)xkb == BadAlloc || xkb == NULL)
++ if (xkb == NULL)
+ {
+ return 5; /*AccessKeyboardQueryFailure;*/
+ }