net/mDNSResponder: fix build on 9.3-RELEASE

- older lex/flex needs yylineno

PR:		210723
MFH:		2016Q3
Reported by:	Ryan Frederick <ryanrfrederick@gmail.com>
Submitted by:	Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
Approved by:	sunpoet (maintainer timeout)
This commit is contained in:
Kurt Jaeger 2016-07-18 17:16:23 +00:00
parent 6dc0f75690
commit 839f75e8be
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=418720

View file

@ -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);