diff --git a/sbin/hastd/Makefile b/sbin/hastd/Makefile index 3c4eef18da4a..d22e389df4bc 100644 --- a/sbin/hastd/Makefile +++ b/sbin/hastd/Makefile @@ -27,9 +27,6 @@ CFLAGS+=-DINET .if ${MK_INET6_SUPPORT} != "no" CFLAGS+=-DINET6 .endif -# This is needed to have WARNS > 1. -CFLAGS+=-DYY_NO_UNPUT -CFLAGS+=-DYY_NO_INPUT DPADD= ${LIBGEOM} ${LIBBSDXML} ${LIBSBUF} ${LIBL} ${LIBPTHREAD} ${LIBUTIL} LDADD= -lgeom -lbsdxml -lsbuf -ll -lpthread -lutil diff --git a/sbin/hastd/token.l b/sbin/hastd/token.l index 0d1507563eed..35889c2c71fc 100644 --- a/sbin/hastd/token.l +++ b/sbin/hastd/token.l @@ -44,6 +44,9 @@ int lineno; #define DP do { } while (0) %} +%option noinput +%option nounput + %% control { DP; return CONTROL; } pidfile { DP; return PIDFILE; }