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 | |
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')
-rw-r--r-- | devel/byacc/Makefile | 3 | ||||
-rw-r--r-- | devel/byacc/patches/patch-aa | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/devel/byacc/Makefile b/devel/byacc/Makefile index 15ca10de445..ba509f0f02c 100644 --- a/devel/byacc/Makefile +++ b/devel/byacc/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.5 2006/09/09 02:41:57 obache Exp $ +# $NetBSD: Makefile,v 1.6 2006/12/09 02:16:03 markd Exp $ # DISTNAME= byacc-20040328 +PKGREVISION= 1 CATEGORIES= devel MASTER_SITES= ftp://invisible-island.net/byacc/ EXTRACT_SUFX= .tgz 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", |