Remove noyywrap from src/link/lexer.l

Workaround for flex version 2.6.3.

Signed-off-by: AntonioND <antonio_nd@outlook.com>
This commit is contained in:
AntonioND
2017-04-04 22:15:36 +01:00
parent 5f299bfe6c
commit a009a372c5
2 changed files with 5 additions and 1 deletions

View File

@@ -16,7 +16,6 @@
%option noinput %option noinput
%option nounput %option nounput
%option noyywrap
%{ %{
#include <unistd.h> #include <unistd.h>

View File

@@ -98,6 +98,11 @@ extern int yyparse();
extern FILE *yyin; extern FILE *yyin;
int yywrap (void)
{
return 1;
}
void yyerror(char *s) void yyerror(char *s)
{ {
errx(1, "%d:Linkerscript parse error: \"%s\"\n", nline, s); errx(1, "%d:Linkerscript parse error: \"%s\"\n", nline, s);