summaryrefslogtreecommitdiff
path: root/dev-libs/wnn7sdk/files/wnn7sdk-qa.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/wnn7sdk/files/wnn7sdk-qa.patch')
-rw-r--r--dev-libs/wnn7sdk/files/wnn7sdk-qa.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-libs/wnn7sdk/files/wnn7sdk-qa.patch b/dev-libs/wnn7sdk/files/wnn7sdk-qa.patch
new file mode 100644
index 000000000000..a41223af8e6f
--- /dev/null
+++ b/dev-libs/wnn7sdk/files/wnn7sdk-qa.patch
@@ -0,0 +1,52 @@
+diff -Naur src.orig/Wnn/etc/msg.c src/Wnn/etc/msg.c
+--- src.orig/Wnn/etc/msg.c 2001-10-17 10:37:17.000000000 +0900
++++ src/Wnn/etc/msg.c 2008-11-22 10:38:22.000000000 +0900
+@@ -148,6 +148,8 @@
+ <message id>\t<message>
+ */
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+ #include "commonhd.h"
+ #include "config.h"
+ #include "dslib.h"
+@@ -156,7 +158,7 @@
+
+
+ static char *
+-bsearch(ky, bs, nel, width, compar)
++a_bsearch(ky, bs, nel, width, compar)
+ char *ky;
+ char *bs;
+ unsigned long nel;
+@@ -244,7 +246,7 @@
+ return(NULL);
+ if (cd->msg_bd == 0 || cd->msg_cnt == 0)
+ return(NULL);
+- bd = (struct msg_bd *)bsearch(id, cd->msg_bd, cd->msg_cnt,
++ bd = (struct msg_bd *)a_bsearch(id, cd->msg_bd, cd->msg_cnt,
+ sizeof(struct msg_bd), _search);
+ if (bd == NULL)
+ return(NULL);
+diff -Naur src.orig/Wnn/jlib/jl.c src/Wnn/jlib/jl.c
+--- src.orig/Wnn/jlib/jl.c 2001-10-17 10:37:17.000000000 +0900
++++ src/Wnn/jlib/jl.c 2008-11-22 10:18:36.000000000 +0900
+@@ -143,6 +143,7 @@
+ #include "commonhd.h"
+ #include "config.h"
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <sys/types.h>
+ #ifdef SYSVR2
+ # include <string.h>
+diff -Naur src.orig/Wnn/jlib/js.c src/Wnn/jlib/js.c
+--- src.orig/Wnn/jlib/js.c 2001-10-17 10:37:17.000000000 +0900
++++ src/Wnn/jlib/js.c 2008-11-22 10:27:04.000000000 +0900
+@@ -162,6 +162,7 @@
+ extern char *malloc();
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <ctype.h>
+ #ifdef UX386
+ #include <X11/Xos.h>