summaryrefslogtreecommitdiff
path: root/inputmethod
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2008-05-31 14:16:47 +0000
committerobache <obache@pkgsrc.org>2008-05-31 14:16:47 +0000
commit61a819b113e835a55e67a63bebdadf702273a240 (patch)
tree56454e1e3f5978b7b409eb19f68878678ac86fcb /inputmethod
parent7ba3be61a4d9d8fdf4bd5908b446f9c2959e2b91 (diff)
downloadpkgsrc-61a819b113e835a55e67a63bebdadf702273a240.tar.gz
Fixes build failure on no sys_errlist[] platforms.
Diffstat (limited to 'inputmethod')
-rw-r--r--inputmethod/tomoe/distinfo3
-rw-r--r--inputmethod/tomoe/patches/patch-aa23
2 files changed, 25 insertions, 1 deletions
diff --git a/inputmethod/tomoe/distinfo b/inputmethod/tomoe/distinfo
index 117dfa16214..25fa9a366eb 100644
--- a/inputmethod/tomoe/distinfo
+++ b/inputmethod/tomoe/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/04/13 06:05:44 obache Exp $
+$NetBSD: distinfo,v 1.2 2008/05/31 14:16:47 obache Exp $
SHA1 (tomoe-0.6.0.tar.gz) = 0ab5b4fd4609d0439f90010c35305595522f54f2
RMD160 (tomoe-0.6.0.tar.gz) = fc8e799c4b845e9c4b41879980fecc9d9dc77c69
Size (tomoe-0.6.0.tar.gz) = 4918949 bytes
+SHA1 (patch-aa) = beaf6abd17e985d3b11eccdd0d870329b9088b00
diff --git a/inputmethod/tomoe/patches/patch-aa b/inputmethod/tomoe/patches/patch-aa
new file mode 100644
index 00000000000..72cd5fe236a
--- /dev/null
+++ b/inputmethod/tomoe/patches/patch-aa
@@ -0,0 +1,23 @@
+$NetBSD: patch-aa,v 1.1 2008/05/31 14:16:47 obache Exp $
+
+--- lib/tomoe-xml-parser.c.orig 2007-04-10 07:24:21.000000000 +0000
++++ lib/tomoe-xml-parser.c
+@@ -22,4 +22,8 @@
+ */
+
++#ifdef HAVE_CONFIG_H
++#include "config.h"
++#endif /* HAVE_CONFIG_H */
++
+ #include <stdio.h>
+ #include <errno.h>
+@@ -442,5 +446,9 @@ _tomoe_xml_parser_parse_dictionary_file
+ if (!f) {
+ g_warning ("failed to open dictionary file %s: %s", filename,
++#ifdef HAVE_STRERROR
++ strerror(errno));
++#else
+ sys_errlist[errno]);
++#endif
+ }
+ g_return_val_if_fail (f, FALSE);