diff options
author | jperkin <jperkin> | 2013-08-16 10:10:26 +0000 |
---|---|---|
committer | jperkin <jperkin> | 2013-08-16 10:10:26 +0000 |
commit | 8d62a5046b8a583e2f358d4fb09db44a5230d900 (patch) | |
tree | e5e0e33ced3d329869bc62a7fc6a7b635ddd7bb7 /net | |
parent | 521326e2bf0413cbad4fb1f7339eef99dfa9237f (diff) | |
download | pkgsrc-8d62a5046b8a583e2f358d4fb09db44a5230d900.tar.gz |
Fix for bison-3 syntax.
Diffstat (limited to 'net')
-rw-r--r-- | net/mDNSResponder/distinfo | 3 | ||||
-rw-r--r-- | net/mDNSResponder/patches/patch-mDNSShared_dnsextd__parser.y | 42 |
2 files changed, 44 insertions, 1 deletions
diff --git a/net/mDNSResponder/distinfo b/net/mDNSResponder/distinfo index 8f389541b02..66e3d2e2f58 100644 --- a/net/mDNSResponder/distinfo +++ b/net/mDNSResponder/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.29 2011/10/04 14:08:48 hans Exp $ +$NetBSD: distinfo,v 1.30 2013/08/16 10:10:26 jperkin Exp $ SHA1 (mDNSResponder-258.14.tar.gz) = 2a34794ff9a5184ce1e57ccea4001b5af6635f7b RMD160 (mDNSResponder-258.14.tar.gz) = fbd9dcfa84dbeb9de379066958a0b509af074dbc @@ -10,3 +10,4 @@ SHA1 (patch-ac) = 3fb065c49ed434f031ea29214ec4140b24f8da64 SHA1 (patch-ad) = 612390897ad2f395ceb7394b644f977c4858d6cc SHA1 (patch-ae) = 551ddcaa508a2e77361a3b683f9de841ca4957b4 SHA1 (patch-af) = bce933daa008f081b72c5d509e84704be13360dc +SHA1 (patch-mDNSShared_dnsextd__parser.y) = dde7eca76c2b5158c2ac96764f91ce773464094a diff --git a/net/mDNSResponder/patches/patch-mDNSShared_dnsextd__parser.y b/net/mDNSResponder/patches/patch-mDNSShared_dnsextd__parser.y new file mode 100644 index 00000000000..8f17adb0a48 --- /dev/null +++ b/net/mDNSResponder/patches/patch-mDNSShared_dnsextd__parser.y @@ -0,0 +1,42 @@ +$NetBSD: patch-mDNSShared_dnsextd__parser.y,v 1.1 2013/08/16 10:10:26 jperkin Exp $ + +Support bison3 syntax. + +--- mDNSShared/dnsextd_parser.y.orig 2010-03-17 20:26:12.000000000 +0000 ++++ mDNSShared/dnsextd_parser.y +@@ -23,7 +23,7 @@ + #include "DebugServices.h" + #include "dnsextd.h" + +-void yyerror( const char* error ); ++void yyerror( void *context, const char* error ); + int yylex(void); + + +@@ -81,8 +81,6 @@ static ZoneSpec * g_zones; + static ZoneSpec g_zoneSpec; + static const char * g_filename; + +-#define YYPARSE_PARAM context +- + void + SetupOptions + ( +@@ -92,6 +90,8 @@ SetupOptions + + %} + ++%parse-param { void *context } ++ + %union + { + int number; +@@ -378,7 +378,7 @@ int yywrap(void); + + extern int yylineno; + +-void yyerror( const char *str ) ++void yyerror( void *context, const char *str ) + { + fprintf( stderr,"%s:%d: error: %s\n", g_filename, yylineno, str ); + } |