aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2004-03-25 23:42:11 +0800
committernectar <nectar@FreeBSD.org>2004-03-25 23:42:11 +0800
commitbfb1b55e23f8f288e504b67490dd83ce40f518aa (patch)
tree3e51a0ba0bf0f7e924d79049dc8006bba915bd74 /japanese
parent8d223cb93f1526e9529037ecee9d90c4d8d0c183 (diff)
downloadfreebsd-ports-gnome-bfb1b55e23f8f288e504b67490dd83ce40f518aa.tar.gz
freebsd-ports-gnome-bfb1b55e23f8f288e504b67490dd83ce40f518aa.tar.zst
freebsd-ports-gnome-bfb1b55e23f8f288e504b67490dd83ce40f518aa.zip
Fix build on 4.x by eliminating some C99 constructs (declarations after
statements). Submitted by: ume
Diffstat (limited to 'japanese')
-rw-r--r--japanese/im-ja/Makefile4
-rw-r--r--japanese/im-ja/files/patch-src%xim-handler.c15
-rw-r--r--japanese/im-ja/files/patch-src%xim-ic.c16
3 files changed, 31 insertions, 4 deletions
diff --git a/japanese/im-ja/Makefile b/japanese/im-ja/Makefile
index b3db17cd9d4a..2952d511a3d4 100644
--- a/japanese/im-ja/Makefile
+++ b/japanese/im-ja/Makefile
@@ -41,10 +41,6 @@ MAN1= im-ja-conf.1
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 500000
-BROKEN= "Does not compile on 4.x"
-.endif
-
post-install:
${X11BASE}/bin/gtk-query-immodules-2.0 > \
${X11BASE}/etc/gtk-2.0/gtk.immodules
diff --git a/japanese/im-ja/files/patch-src%xim-handler.c b/japanese/im-ja/files/patch-src%xim-handler.c
new file mode 100644
index 000000000000..81aa04fd2f02
--- /dev/null
+++ b/japanese/im-ja/files/patch-src%xim-handler.c
@@ -0,0 +1,15 @@
+Index: src/xim-handler.c
+diff -u -p src/xim-handler.c.orig src/xim-handler.c
+--- src/xim-handler.c.orig Wed Dec 17 13:17:26 2003
++++ src/xim-handler.c Wed Mar 24 21:10:11 2004
+@@ -214,8 +214,9 @@ static Bool im_ja_xim_handler_destroy_ic
+ static Bool im_ja_xim_handler_set_ic_values(XIMS ims, IMProtocol *call_data) {
+ IMChangeICStruct *data = (IMChangeICStruct *)call_data;
+
+- IM_JA_DEBUG("im_ja_xim_handler_set_ic_values\n");
+ IMJAContext *ic = im_ja_xim_server_get_ic(data->icid);
++
++ IM_JA_DEBUG("im_ja_xim_handler_set_ic_values\n");
+
+ if (ic != NULL) im_ja_xim_ic_set_values(ic, data);
+
diff --git a/japanese/im-ja/files/patch-src%xim-ic.c b/japanese/im-ja/files/patch-src%xim-ic.c
new file mode 100644
index 000000000000..6cb073ebd263
--- /dev/null
+++ b/japanese/im-ja/files/patch-src%xim-ic.c
@@ -0,0 +1,16 @@
+Index: src/xim-ic.c
+diff -u -p src/xim-ic.c.orig src/xim-ic.c
+--- src/xim-ic.c.orig Wed Dec 17 13:17:26 2003
++++ src/xim-ic.c Wed Mar 24 21:12:11 2004
+@@ -572,9 +572,9 @@ static void im_ja_xim_ic_set_preedit_bac
+
+
+ static void im_ja_xim_ic_load_preedit_fontset(IMJAContext *ic, char *font_name) {
+- IM_JA_DEBUG("im_ja_xim_ic_load_preedit_fontset\n");
+-
+ IMJAXimFontSet *fontset;
++
++ IM_JA_DEBUG("im_ja_xim_ic_load_preedit_fontset\n");
+
+ if (ic->preedit.base_font != NULL && strcmp(ic->preedit.base_font, font_name) == 0) {
+ // same font, do not create fontset