aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2007-02-06 02:33:41 +0800
committerrafan <rafan@FreeBSD.org>2007-02-06 02:33:41 +0800
commit8635467205bb948e3f26186637e85114e069d645 (patch)
tree83a97dea5584143c3703fff6db4b767d2f0b93b7
parentffaf6a344ee033955053a447c87774843bfc6230 (diff)
downloadfreebsd-ports-gnome-8635467205bb948e3f26186637e85114e069d645.tar.gz
freebsd-ports-gnome-8635467205bb948e3f26186637e85114e069d645.tar.zst
freebsd-ports-gnome-8635467205bb948e3f26186637e85114e069d645.zip
- Fix build on amd64 and gcc4
PR: ports/108720 Submitted by: Stephen Montgomery-Smith <stephen at math.missouri.edu> (maintainer)
-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;*/
+ }