From b6198521c8334a27c0e3a8202347654ff272895e Mon Sep 17 00:00:00 2001 From: jkim Date: Thu, 23 May 2013 05:42:35 +0000 Subject: Work around build breakages with GCC 4.2. Reported by: tinderbox --- usr.sbin/bluetooth/bthidd/lexer.l | 2 ++ usr.sbin/config/lang.l | 1 + usr.sbin/jail/jaillex.l | 2 ++ 3 files changed, 5 insertions(+) (limited to 'usr.sbin') 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 -- cgit v1.1