aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-02-15 19:44:54 +0800
committermiwi <miwi@FreeBSD.org>2007-02-15 19:44:54 +0800
commit60087e877906471b0b6c4d39e9f37fe0adf82a44 (patch)
tree242f4f28a15656df0666b6fc4cdaa771d7620cd9 /x11
parentedc50ab82de9d5dc7b7f96089f4819a8b3004723 (diff)
downloadfreebsd-ports-gnome-60087e877906471b0b6c4d39e9f37fe0adf82a44.tar.gz
freebsd-ports-gnome-60087e877906471b0b6c4d39e9f37fe0adf82a44.tar.zst
freebsd-ports-gnome-60087e877906471b0b6c4d39e9f37fe0adf82a44.zip
- Fix build
PR: 109184 Submitted by: Stephen Montgomery-Smith <stephen@cauchy.math.missouri.edu> (maintainer)
Diffstat (limited to 'x11')
-rw-r--r--x11/accessx/Makefile1
-rw-r--r--x11/accessx/files/patch-Access.C29
-rw-r--r--x11/accessx/files/patch-Access.h11
3 files changed, 41 insertions, 0 deletions
diff --git a/x11/accessx/Makefile b/x11/accessx/Makefile
index ba208863c771..7c9829e5710a 100644
--- a/x11/accessx/Makefile
+++ b/x11/accessx/Makefile
@@ -7,6 +7,7 @@
PORTNAME= accessx
PORTVERSION= 0.951
+PORTREVISION= 1
CATEGORIES= x11 accessibility
MASTER_SITES= http://www.disability.uiuc.edu/accessx/software/
DISTNAME= accessx${PORTVERSION:S/.//g}
diff --git a/x11/accessx/files/patch-Access.C b/x11/accessx/files/patch-Access.C
new file mode 100644
index 000000000000..dc50b39dd53d
--- /dev/null
+++ b/x11/accessx/files/patch-Access.C
@@ -0,0 +1,29 @@
+--- 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"
+
++using namespace std;
++
+ //
+ // 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;*/
+ }
diff --git a/x11/accessx/files/patch-Access.h b/x11/accessx/files/patch-Access.h
new file mode 100644
index 000000000000..58c8c0b89c4c
--- /dev/null
+++ b/x11/accessx/files/patch-Access.h
@@ -0,0 +1,11 @@
+--- Access.h-orig Sun Nov 17 19:34:23 2002
++++ Access.h Sun Nov 17 19:34:34 2002
+@@ -20,7 +20,7 @@
+ *
+ */
+
+-#include <iostream.h>
++#include <iostream>
+ #include <math.h>
+
+ inline char* onoroff(int val)