From e3da8c4253c2dde8df0cbe29e0fee16db9d81ab5 Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 1 Sep 2013 15:39:54 +0000 Subject: Fix build with bison-3.0. Compile-tested only. --- textproc/itex2MML/distinfo | 3 ++- textproc/itex2MML/patches/patch-itex2MML.y | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 textproc/itex2MML/patches/patch-itex2MML.y (limited to 'textproc') diff --git a/textproc/itex2MML/distinfo b/textproc/itex2MML/distinfo index a54ecc1d794..f2a05e9bd5b 100644 --- a/textproc/itex2MML/distinfo +++ b/textproc/itex2MML/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.2 2007/06/29 23:08:12 minskim Exp $ +$NetBSD: distinfo,v 1.3 2013/09/01 15:39:54 wiz Exp $ SHA1 (itex2MML-1.2.3/itexToMML.tar.gz) = cd2dc6e23e2d3dce13b5eaac29e0869a4d35be9d RMD160 (itex2MML-1.2.3/itexToMML.tar.gz) = 6e49bed01c3522a36bfc677fdc76015163d6e55a Size (itex2MML-1.2.3/itexToMML.tar.gz) = 127327 bytes +SHA1 (patch-itex2MML.y) = 8533a9d7d51c0fe3af9fe11b8ddd4cfd50d16c66 diff --git a/textproc/itex2MML/patches/patch-itex2MML.y b/textproc/itex2MML/patches/patch-itex2MML.y new file mode 100644 index 00000000000..c9ee4d823b4 --- /dev/null +++ b/textproc/itex2MML/patches/patch-itex2MML.y @@ -0,0 +1,24 @@ +$NetBSD: patch-itex2MML.y,v 1.1 2013/09/01 15:39:54 wiz Exp $ + +Fix build with bison-3.0 + +--- itex2MML.y.orig 2007-05-06 17:20:44.000000000 +0000 ++++ itex2MML.y +@@ -2,6 +2,8 @@ + * itex2MML.y last modified 5/6/2007 + */ + ++%parse-param {char **ret_str} ++ + %{ + #include + #include +@@ -27,7 +29,7 @@ + + void (*itex2MML_error) (const char * msg) = itex2MML_default_error; + +- static void yyerror (char * s) ++ static void yyerror (char **ret_str, char * s) + { + char * msg = itex2MML_copy3 (s, " at token ", yytext); + if (itex2MML_error) -- cgit v1.2.3