From 3a23e9ba00cde653daed9782f3df5f5f43df38ec Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Mon, 27 Apr 2020 16:09:03 +0000 Subject: [PATCH] dtc: fix the -fno-common build This is a direct commit to stable/12, as GPL dtc has been removed in head. -fno-common will become the default in GCC10/LLVM11. --- contrib/dtc/dtc-lexer.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/dtc/dtc-lexer.l b/contrib/dtc/dtc-lexer.l index 62e42ffedbb..55e71e17289 100644 --- a/contrib/dtc/dtc-lexer.l +++ b/contrib/dtc/dtc-lexer.l @@ -42,7 +42,7 @@ LINECOMMENT "//".*\n YY_BUFFER_STATE include_stack[MAX_INCLUDE_NESTING]; int include_stack_pointer = 0; -YYLTYPE yylloc; +extern YYLTYPE yylloc; extern bool treesource_error; /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ -- 2.45.0