summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-05-23 05:42:35 +0000
committerjkim <jkim@FreeBSD.org>2013-05-23 05:42:35 +0000
commitb6198521c8334a27c0e3a8202347654ff272895e (patch)
tree3598651de83142df8fc17b6d40fc42a27bbe410d /usr.sbin
parent68b09f240d29ac65863cfa52dd5ab2c39c09a984 (diff)
downloadFreeBSD-src-b6198521c8334a27c0e3a8202347654ff272895e.zip
FreeBSD-src-b6198521c8334a27c0e3a8202347654ff272895e.tar.gz
Work around build breakages with GCC 4.2.
Reported by: tinderbox
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bluetooth/bthidd/lexer.l2
-rw-r--r--usr.sbin/config/lang.l1
-rw-r--r--usr.sbin/jail/jaillex.l2
3 files changed, 5 insertions, 0 deletions
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
OpenPOWER on IntegriCloud