diff options
author | markd <markd@pkgsrc.org> | 2006-12-09 02:16:03 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2006-12-09 02:16:03 +0000 |
commit | 5fe3a74bc2379146847c62074dff647eef183f5e (patch) | |
tree | 833455a2a43cd10c100d80463763d68112e9c5ad /devel/byacc/patches | |
parent | 1d9864444d1bbed7cf9063dc25fa592c5a8305a1 (diff) | |
download | pkgsrc-5fe3a74bc2379146847c62074dff647eef183f5e.tar.gz |
Fix outputing of union's to y.tab.h when -d option given
Diffstat (limited to 'devel/byacc/patches')
-rw-r--r-- | devel/byacc/patches/patch-aa | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/byacc/patches/patch-aa b/devel/byacc/patches/patch-aa new file mode 100644 index 00000000000..77d044698b3 --- /dev/null +++ b/devel/byacc/patches/patch-aa @@ -0,0 +1,15 @@ +$NetBSD: patch-aa,v 1.1 2006/12/09 02:16:03 markd Exp $ + +--- output.c.orig 2006-12-08 17:09:10.455919000 +1300 ++++ output.c +@@ -811,8 +811,8 @@ void output_defines(void) + if (dflag && unionized) + { + rewind(union_file); +- union_file = tmpfile(); +- if (union_file == NULL) open_error("union_file"); ++ /* union_file = tmpfile(); ++ if (union_file == NULL) open_error("union_file"); */ + while ((c = getc(union_file)) != EOF) + putc(c, defines_file); + fprintf(defines_file, " YYSTYPE;\nextern YYSTYPE %slval;\n", |