shithub: rgbds

Download patch

ref: a009a372c58e11bf505149420241634cb6eb8b4c
parent: 5f299bfe6c79b1805ceccf3427a0ec43d5d868d5
author: AntonioND <[email protected]>
date: Tue Apr 4 18:15:36 EDT 2017

Remove noyywrap from src/link/lexer.l

Workaround for flex version 2.6.3.

Signed-off-by: AntonioND <[email protected]>

--- a/src/link/lexer.l
+++ b/src/link/lexer.l
@@ -16,7 +16,6 @@
 
 %option noinput
 %option nounput
-%option noyywrap
 
 %{
 #include <unistd.h>
--- a/src/link/parser.y
+++ b/src/link/parser.y
@@ -98,6 +98,11 @@
 
 extern FILE *yyin;
 
+int yywrap (void)
+{
+	return 1;
+}
+
 void yyerror(char *s)
 {
 	errx(1, "%d:Linkerscript parse error: \"%s\"\n", nline, s);