diff options
author | jkim <jkim@FreeBSD.org> | 2013-05-23 05:42:35 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2013-05-23 05:42:35 +0000 |
commit | b6198521c8334a27c0e3a8202347654ff272895e (patch) | |
tree | 3598651de83142df8fc17b6d40fc42a27bbe410d /usr.bin | |
parent | 68b09f240d29ac65863cfa52dd5ab2c39c09a984 (diff) | |
download | FreeBSD-src-b6198521c8334a27c0e3a8202347654ff272895e.zip FreeBSD-src-b6198521c8334a27c0e3a8202347654ff272895e.tar.gz |
Work around build breakages with GCC 4.2.
Reported by: tinderbox
Diffstat (limited to 'usr.bin')
-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 |
4 files changed, 7 insertions, 0 deletions
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] |