diff options
-rw-r--r-- | contrib/openbsm/bin/auditdistd/token.l | 1 | ||||
-rw-r--r-- | usr.bin/ar/acplex.l | 2 | ||||
-rw-r--r-- | usr.bin/bc/scan.l | 1 | ||||
-rw-r--r-- | usr.bin/m4/tokenizer.l | 2 | ||||
-rw-r--r-- | usr.bin/mklocale/lex.l | 2 | ||||
-rw-r--r-- | usr.sbin/bluetooth/bthidd/lexer.l | 2 | ||||
-rw-r--r-- | usr.sbin/config/lang.l | 1 | ||||
-rw-r--r-- | usr.sbin/jail/jaillex.l | 2 |
8 files changed, 13 insertions, 0 deletions
diff --git a/contrib/openbsm/bin/auditdistd/token.l b/contrib/openbsm/bin/auditdistd/token.l index 5e58e87..f459013 100644 --- a/contrib/openbsm/bin/auditdistd/token.l +++ b/contrib/openbsm/bin/auditdistd/token.l @@ -52,6 +52,7 @@ int depth; int lineno; #define DP do { } while (0) +#define YY_DECL int yylex(void) %} %option noinput diff --git a/usr.bin/ar/acplex.l b/usr.bin/ar/acplex.l index a82db37..589888e 100644 --- a/usr.bin/ar/acplex.l +++ b/usr.bin/ar/acplex.l @@ -40,6 +40,8 @@ int lineno = 1; int yylex(void); +#define YY_DECL int yylex(void) + %} %option nounput diff --git a/usr.bin/bc/scan.l b/usr.bin/bc/scan.l index 5d60bb3..71cb295 100644 --- a/usr.bin/bc/scan.l +++ b/usr.bin/bc/scan.l @@ -46,6 +46,7 @@ static void init_strbuf(void); static void add_str(const char *); static int bc_yyinput(char *, int); +#define YY_DECL int yylex(void) #define YY_NO_INPUT #undef YY_INPUT #define YY_INPUT(buf,retval,max) \ diff --git a/usr.bin/m4/tokenizer.l b/usr.bin/m4/tokenizer.l index da362b4..2b4b2db 100644 --- a/usr.bin/m4/tokenizer.l +++ b/usr.bin/m4/tokenizer.l @@ -31,6 +31,8 @@ extern int32_t yylval; int32_t number(void); int32_t parse_radix(void); extern int yylex(void); + +#define YY_DECL int yylex(void) %} delim [ \t\n] diff --git a/usr.bin/mklocale/lex.l b/usr.bin/mklocale/lex.l index d931df7..08fa54a 100644 --- a/usr.bin/mklocale/lex.l +++ b/usr.bin/mklocale/lex.l @@ -47,6 +47,8 @@ __FBSDID("$FreeBSD$"); #include "ldef.h" #include "y.tab.h" #include "extern.h" + +#define YY_DECL int yylex(void) %} ODIGIT [0-7] diff --git a/usr.sbin/bluetooth/bthidd/lexer.l b/usr.sbin/bluetooth/bthidd/lexer.l index 54821da..b9f62a1 100644 --- a/usr.sbin/bluetooth/bthidd/lexer.l +++ b/usr.sbin/bluetooth/bthidd/lexer.l @@ -37,6 +37,8 @@ #include "parser.h" int yylex (void); + +#define YY_DECL int yylex(void) %} %option yylineno noyywrap nounput noinput diff --git a/usr.sbin/config/lang.l b/usr.sbin/config/lang.l index c56c6af..3e4e115 100644 --- a/usr.sbin/config/lang.l +++ b/usr.sbin/config/lang.l @@ -93,6 +93,7 @@ unsigned int octal(const char *); unsigned int hex(const char *); int yyerror(const char *); +#define YY_DECL int yylex(void) %} %option nounput diff --git a/usr.sbin/jail/jaillex.l b/usr.sbin/jail/jaillex.l index b77e15a..04de85f 100644 --- a/usr.sbin/jail/jaillex.l +++ b/usr.sbin/jail/jaillex.l @@ -42,6 +42,8 @@ static ssize_t text2lval(size_t triml, size_t trimr, int tovar); static int instr; static int lineno = 1; + +#define YY_DECL int yylex(void) %} %option noinput |