summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/wnn7sdk/files')
-rw-r--r--dev-libs/wnn7sdk/files/wnn7sdk-gcc4.patch30
-rw-r--r--dev-libs/wnn7sdk/files/wnn7sdk-gentoo.patch67
-rw-r--r--dev-libs/wnn7sdk/files/wnn7sdk-malloc.patch20
-rw-r--r--dev-libs/wnn7sdk/files/wnn7sdk-qa.patch52
4 files changed, 169 insertions, 0 deletions
diff --git a/dev-libs/wnn7sdk/files/wnn7sdk-gcc4.patch b/dev-libs/wnn7sdk/files/wnn7sdk-gcc4.patch
new file mode 100644
index 000000000000..f97845f449f1
--- /dev/null
+++ b/dev-libs/wnn7sdk/files/wnn7sdk-gcc4.patch
@@ -0,0 +1,30 @@
+diff -urN Wnn/etc/bdic.c Wnn-gcc4/etc/bdic.c
+--- Wnn/etc/bdic.c 2001-10-17 10:37:17.000000000 +0900
++++ Wnn-gcc4/etc/bdic.c 2006-11-06 01:31:31.000000000 +0900
+@@ -177,6 +177,14 @@
+ #define max(a, b) ((a < b)? b:a)
+ #endif
+
++#ifdef WNN_CHECK_INODE
++static int change_file_uniq1();
++#else
++#ifdef JS
++static int change_file_uniq1();
++#endif
++#endif
++
+ /*:::DOC_START
+ *
+ * Function Name: dic_fopen
+diff -urN Wnn/jlib/jl.c Wnn-gcc4/jlib/jl.c
+--- Wnn/jlib/jl.c 2001-10-17 10:37:17.000000000 +0900
++++ Wnn-gcc4/jlib/jl.c 2006-11-06 01:33:13.000000000 +0900
+@@ -297,6 +297,8 @@
+ static int insert_dai_or_ikeiji();
+ static int jl_dic_save_all_e_body();
+
++static void jl_disconnect_if_server_dead_body_by_jsid();
++
+ static struct wnn_buf *jl_open_lang_core();
+ static struct wnn_env *jl_connect_lang_core();
+
diff --git a/dev-libs/wnn7sdk/files/wnn7sdk-gentoo.patch b/dev-libs/wnn7sdk/files/wnn7sdk-gentoo.patch
new file mode 100644
index 000000000000..e203c8b5fa83
--- /dev/null
+++ b/dev-libs/wnn7sdk/files/wnn7sdk-gentoo.patch
@@ -0,0 +1,67 @@
+--- work/src/Wnn/jlib/Imakefile Wed Oct 17 10:37:17 2001
++++ Wnn/jlib/Imakefile Sat Oct 19 17:15:25 2002
+@@ -60,9 +60,9 @@
+
+ LibraryObjectRule()
+ #if DoSharedLib
+-AllTarget($(OBJS) libwnn.a libwnn.so.$(SOWNN7LIBREV))
++AllTarget($(OBJS) libwnn7.a libwnn7.so.$(SOWNN7LIBREV))
+ #else
+-AllTarget($(OBJS) libwnn.a)
++AllTarget($(OBJS) libwnn7.a)
+ #endif
+
+
+@@ -75,23 +75,23 @@
+ SingleProgramTarget(kankana,kankana.o,$(WNNJLIB),)
+
+ #if DoSharedLib
+-SharedLibraryTarget(wnn,$(SOWNN7LIBREV),$(OBJS),.,.)
++SharedLibraryTarget(wnn7,$(SOWNN7LIBREV),$(OBJS),.,.)
+ #endif
+-UnsharedLibraryTarget(wnn,$(UNSHAREDOBJS),unshared,..)
+-LintLibraryTarget(wnn,$(SRCS))
++UnsharedLibraryTarget(wnn7,$(UNSHAREDOBJS),unshared,..)
++LintLibraryTarget(wnn7,$(SRCS))
+
+
+
+ instlib:: install
+
+ #if DoSharedLib
+-InstallSharedLibrary(wnn,$(SOWNN7LIBREV),$(WNNLIBDIR))
++InstallSharedLibrary(wnn7,$(SOWNN7LIBREV),$(WNNLIBDIR))
+ #endif
+-InstallLibrary(wnn,$(WNNLIBDIR))
++InstallLibrary(wnn7,$(WNNLIBDIR))
+
+ #if ProfileLibJlib
+-ProfiledLibraryTarget(wnn,$(OBJS))
+-InstallLibrary(wnn_p,$(WNNLIBDIR))
++ProfiledLibraryTarget(wnn7,$(OBJS))
++InstallLibrary(wnn7_p,$(WNNLIBDIR))
+ #endif
+
+ #if DoSharedLib
+--- work/src/config/Project.tmpl.orig Wed Oct 17 10:37:18 2001
++++ config/Project.tmpl Sat Oct 19 18:04:30 2002
+@@ -599,7 +599,7 @@
+ XWNMOJDSRC = $(XWNMOTOP)/jd
+ XWNMOROMKANMSRC = $(XWNMOTOP)/romkan_m
+ XWNMOINCLUDES = -I$(XWNMOROMKANMSRC) -I$(WNNINCLUDESRC)
+- XWNMOJLIB = $(XWNMOJLIBSRC)/libwnn_m.a
++ XWNMOJLIB = $(XWNMOJLIBSRC)/libwnn7_m.a
+ XWNMOLIBRARIES = $(XWNMOJLIB)
+ XWNMODEFS = $(XVERSION) -DUSING_BUSHU
+ XCOMMONDIR = $(IMTOP)/XClient/Common/src
+--- work/src/config/X11.tmpl~ Wed Oct 17 10:37:18 2001
++++ config/X11.tmpl Sat Oct 19 18:08:32 2002
+@@ -599,7 +599,7 @@
+ XWNMOJDSRC = $(XWNMOTOP)/jd
+ XWNMOROMKANMSRC = $(XWNMOTOP)/romkan_m
+ XWNMOINCLUDES = -I$(XWNMOROMKANMSRC) -I$(WNNINCLUDESRC)
+- XWNMOJLIB = $(XWNMOJLIBSRC)/libwnn_m.a
++ XWNMOJLIB = $(XWNMOJLIBSRC)/libwnn7_m.a
+ XWNMOLIBRARIES = $(XWNMOJLIB)
+ XWNMODEFS = $(XVERSION) -DUSING_BUSHU
+ XCOMMONDIR = $(IMTOP)/XClient/Common/src
diff --git a/dev-libs/wnn7sdk/files/wnn7sdk-malloc.patch b/dev-libs/wnn7sdk/files/wnn7sdk-malloc.patch
new file mode 100644
index 000000000000..0a0ce4337080
--- /dev/null
+++ b/dev-libs/wnn7sdk/files/wnn7sdk-malloc.patch
@@ -0,0 +1,20 @@
+--- Wnn/jlib/js.c.bak 2005-01-20 12:33:10.000000000 +0900
++++ Wnn/jlib/js.c 2005-01-20 12:33:10.000000000 +0900
+@@ -159,7 +159,7 @@
+ */
+
+
+-extern char *malloc();
++extern void *malloc();
+
+ #include <stdio.h>
+ #include <ctype.h>
+@@ -199,7 +199,7 @@
+ #include "../etc/pwd.c"
+
+
+-char *malloc();
++void *malloc();
+
+ typedef struct _host_address {
+ int address_len;
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>