1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

- Fix build on amd64 and gcc4

PR:		ports/108720
Submitted by:	Stephen Montgomery-Smith <stephen at math.missouri.edu> (maintainer)
This commit is contained in:
Rong-En Fan 2007-02-05 18:33:41 +00:00
parent 55dc2228b0
commit 4be9bd4f71
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=184290

View File

@ -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;*/
}