aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2013-07-03 18:25:27 +0000
committerPeter Wemm <peter@FreeBSD.org>2013-07-03 18:25:27 +0000
commit33e7ec3e830c571cd63ad011da5a8114a42e5ce9 (patch)
treef713cfaccb321324101b1aac5c2389e4559cf36d /usr.bin
parentbcafe87486e5c12dea0bc53c4c782616791f2e74 (diff)
downloadsrc-33e7ec3e830c571cd63ad011da5a8114a42e5ce9.tar.gz
src-33e7ec3e830c571cd63ad011da5a8114a42e5ce9.zip
Attempt to deal with a compile failure that shows up with gcc, which
has -Werror on. Without this, yylex() is inconsistently or redundantly defined.
Notes
Notes: svn path=/head/; revision=252582
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mkcsmapper/lex.l2
-rw-r--r--usr.bin/mkesdb/lex.l2
2 files changed, 4 insertions, 0 deletions
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