From a7880d59c9588622a96ec154fd3fbb6c037bb83a Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Fri, 3 May 2013 23:51:32 +0000 Subject: Improve compatibility with recent flex from flex.sourceforge.net. --- usr.sbin/ndiscvt/inf-token.l | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ndiscvt') diff --git a/usr.sbin/ndiscvt/inf-token.l b/usr.sbin/ndiscvt/inf-token.l index 1f290e1e1543..3e2a1278d530 100644 --- a/usr.sbin/ndiscvt/inf-token.l +++ b/usr.sbin/ndiscvt/inf-token.l @@ -43,8 +43,6 @@ __FBSDID("$FreeBSD$"); #include "y.tab.h" int lineno = 1; -#define YY_NO_UNPUT -#define YY_NO_INPUT int yylex(void); void yyerror(const char *); @@ -59,6 +57,9 @@ update_lineno(const char *cp) %} +%option nounput +%option noinput + %% [ \t]+ ; -- cgit v1.2.3