summaryrefslogtreecommitdiff
path: root/x11-misc/accessx/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/accessx/files
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/accessx/files')
-rw-r--r--x11-misc/accessx/files/accessx-0951-build.patch65
1 files changed, 65 insertions, 0 deletions
diff --git a/x11-misc/accessx/files/accessx-0951-build.patch b/x11-misc/accessx/files/accessx-0951-build.patch
new file mode 100644
index 000000000000..6d732487214f
--- /dev/null
+++ b/x11-misc/accessx/files/accessx-0951-build.patch
@@ -0,0 +1,65 @@
+diff -ur accessx.orig/Access.C accessx/Access.C
+--- accessx.orig/Access.C 2003-09-19 19:08:01.000000000 +0300
++++ accessx/Access.C 2008-01-07 18:53:43.000000000 +0200
+@@ -22,6 +22,8 @@
+ #include <X11/XKBlib.h>
+ #include "Access.h"
+
++using namespace std;
++
+ //
+ // Access()
+ //
+@@ -153,7 +155,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;*/
+ }
+@@ -262,7 +264,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 -ur accessx.orig/Access.h accessx/Access.h
+--- accessx.orig/Access.h 2003-09-19 19:00:42.000000000 +0300
++++ accessx/Access.h 2008-01-07 18:53:47.000000000 +0200
+@@ -21,7 +21,7 @@
+ *
+ */
+
+-#include <iostream.h>
++#include <iostream>
+ #include <math.h>
+
+ inline char* onoroff(int val)
+diff -ur accessx.orig/ax.C accessx/ax.C
+--- accessx.orig/ax.C 2003-09-19 19:09:31.000000000 +0300
++++ accessx/ax.C 2008-01-07 18:53:49.000000000 +0200
+@@ -20,6 +20,7 @@
+
+ #include "ax.h"
+
++using namespace std;
+
+ ///////////////////////////////////////////////////////////////////////////////
+ //
+diff -ur accessx.orig/ax.h accessx/ax.h
+--- accessx.orig/ax.h 2003-09-19 19:06:56.000000000 +0300
++++ accessx/ax.h 2008-01-07 18:53:51.000000000 +0200
+@@ -24,7 +24,7 @@
+
+ // Include Files
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>