From 33e7ec3e830c571cd63ad011da5a8114a42e5ce9 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Wed, 3 Jul 2013 18:25:27 +0000 Subject: Attempt to deal with a compile failure that shows up with gcc, which has -Werror on. Without this, yylex() is inconsistently or redundantly defined. --- usr.bin/mkcsmapper/lex.l | 2 ++ usr.bin/mkesdb/lex.l | 2 ++ 2 files changed, 4 insertions(+) (limited to 'usr.bin') diff --git a/usr.bin/mkcsmapper/lex.l b/usr.bin/mkcsmapper/lex.l index 4ba7fc4af045..33b7f8eb95f7 100644 --- a/usr.bin/mkcsmapper/lex.l +++ b/usr.bin/mkcsmapper/lex.l @@ -41,6 +41,8 @@ #include "ldef.h" #include "yacc.h" +#define YY_DECL int yylex(void) + int linenumber = 1; %} %option noinput diff --git a/usr.bin/mkesdb/lex.l b/usr.bin/mkesdb/lex.l index 19c5379b59d5..c9d9cc1e42d3 100644 --- a/usr.bin/mkesdb/lex.l +++ b/usr.bin/mkesdb/lex.l @@ -43,6 +43,8 @@ #include "ldef.h" #include "yacc.h" +#define YY_DECL int yylex(void) + int linenumber = 1; %} %option noinput -- cgit v1.3