From: liuzhensong Date: Tue, 30 Aug 2022 03:53:15 +0000 (+0800) Subject: LoongArch: Fix redefinition of "PACKAGE". X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df4febc60037a1f357414667ff07498cf225c22e;p=binutils-gdb.git LoongArch: Fix redefinition of "PACKAGE". Running configure and make in binutils-gdb. $ ./configure $ make In file included from ./as.h:37, from ./config/loongarch-lex.l:21, from config/loongarch-lex-wrapper.c:20: ./config.h:206: error: “PACKAGE” redefined [-Werror] #define PACKAGE "gas" ... gas/config * loongarch-lex-wrapper.c --- diff --git a/gas/config/loongarch-lex-wrapper.c b/gas/config/loongarch-lex-wrapper.c index 3bb0b14c680..4ddeeb73c9b 100644 --- a/gas/config/loongarch-lex-wrapper.c +++ b/gas/config/loongarch-lex-wrapper.c @@ -16,5 +16,5 @@ along with this program; see the file COPYING3. If not, see . */ -#include "sysdep.h" +#include "config.h" #include "config/loongarch-lex.c"