PKGBUILDs/core/linux-odroid-c1/0003-fix-redundant-YYLOC-for-gcc10.patch

13 lines
459 B
Diff
Raw Normal View History

2021-03-26 21:11:14 +00:00
diff -ruN a/scripts/dtc/dtc-lexer.lex.c_shipped b/scripts/dtc/dtc-lexer.lex.c_shipped
--- a/scripts/dtc/dtc-lexer.lex.c_shipped 2021-02-03 08:03:56.000000000 -0700
+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-03-25 23:49:08.007267658 -0600
@@ -637,7 +637,7 @@
#include "srcpos.h"
#include "dtc-parser.tab.h"
-YYLTYPE yylloc;
+extern YYLTYPE yylloc;
/* CAUTION: this will stop working if we ever use yyless() or yyunput() */
#define YY_USER_ACTION \