aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2004-04-21 03:45:35 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2004-04-21 03:45:35 +0000
commit4577631804fdebb470ccbe44426c059f0863872c (patch)
treea751812295b3d7a61fb6f04d237c1739d1b0e9ae
parentd063a2e9183a4b9bc8854fd599f258bc83f3ce55 (diff)
downloadports-4577631804fdebb470ccbe44426c059f0863872c.tar.gz
ports-4577631804fdebb470ccbe44426c059f0863872c.zip
Fix build with C89 compilers.
Notes
Notes: svn path=/head/; revision=107769
-rw-r--r--textproc/ruby-xmlparser/files/patch-xmlparser.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/textproc/ruby-xmlparser/files/patch-xmlparser.c b/textproc/ruby-xmlparser/files/patch-xmlparser.c
new file mode 100644
index 000000000000..37475f4fdab8
--- /dev/null
+++ b/textproc/ruby-xmlparser/files/patch-xmlparser.c
@@ -0,0 +1,24 @@
+--- xmlparser.c.orig Tue Apr 6 14:16:09 2004
++++ xmlparser.c Wed Apr 21 12:38:50 2004
+@@ -526,8 +526,9 @@
+ XML_Content *model)
+ {
+ XMLParser* parser;
++ VALUE content;
+ GET_PARSER(recv, parser);
+- VALUE content = makeContentArray(parser, model);
++ content = makeContentArray(parser, model);
+ rb_yield(rb_ary_new3(4, symELEMENT_DECL,
+ TO_(rb_str_new2(name)),
+ content, recv));
+@@ -929,8 +930,9 @@
+ XML_Content *model)
+ {
+ XMLParser* parser;
++ VALUE content;
+ GET_PARSER(recv, parser);
+- VALUE content = makeContentArray(parser, model);
++ content = makeContentArray(parser, model);
+ rb_funcall((VALUE)recv, id_elementDeclHandler, 2,
+ TO_(rb_str_new2(name)), content);
+ }