fix: ftbfs
authorHan Gao <gaohan@iscas.ac.cn>
Tue, 9 May 2023 18:25:53 +0000 (02:25 +0800)
committerHan Gao <gaohan@iscas.ac.cn>
Tue, 9 May 2023 18:25:53 +0000 (02:25 +0800)
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
scripts/dtc/dtc-lexer.l

index fd825ebba69cb25e160e057f53bef994970093fc..f57c9a7e83ac453bedb7ab5faaa806e5a77f706a 100644 (file)
@@ -38,7 +38,7 @@ LINECOMMENT   "//".*\n
 #include "srcpos.h"
 #include "dtc-parser.tab.h"
 
-YYLTYPE yylloc;
+extern YYLTYPE yylloc;
 extern bool treesource_error;
 
 /* CAUTION: this will stop working if we ever use yyless() or yyunput() */