diff options
author | pi <pi@FreeBSD.org> | 2016-07-18 20:05:42 +0000 |
---|---|---|
committer | pi <pi@FreeBSD.org> | 2016-07-18 20:05:42 +0000 |
commit | 749d9b315d8ee6ccb36bf57d45e30ae4957a5545 (patch) | |
tree | af9024a8bc73ca85b44dfdfd27272a657cadee93 | |
parent | e212e0555ff4ef0cfac07ee6b06c0b3cd65e278b (diff) | |
download | FreeBSD-ports-749d9b315d8ee6ccb36bf57d45e30ae4957a5545.zip FreeBSD-ports-749d9b315d8ee6ccb36bf57d45e30ae4957a5545.tar.gz |
net/mDNSResponder: fix build on 9.3-RELEASE
- older lex/flex needs yylineno
PR: 210723
MFH: r418720
Reported by: Ryan Frederick <ryanrfrederick@gmail.com>
Submitted by: Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
Approved by: portmgr (feld)
-rw-r--r-- | net/mDNSResponder/files/patch-dnsextd__lexer.l | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/mDNSResponder/files/patch-dnsextd__lexer.l b/net/mDNSResponder/files/patch-dnsextd__lexer.l new file mode 100644 index 0000000..69ac4be --- /dev/null +++ b/net/mDNSResponder/files/patch-dnsextd__lexer.l @@ -0,0 +1,16 @@ +--- mDNSShared/dnsextd_lexer.l.orig 2016-07-01 01:07:18 UTC ++++ mDNSShared/dnsextd_lexer.l +@@ -23,6 +23,13 @@ + + extern YYSTYPE yylval; + ++#if !defined YYSTYPE_yylineno ++#if YY_FLEX_MAJOR_VERSION <= 2 && YY_FLEX_MINOR_VERSION <= 5 && YY_FLEX_SUBMINOR_VERSION <= 4 ++int yylineno = 1; ++#endif ++#endif ++ ++ + #define YY_NO_INPUT 1 + int yylex(void); + |