From: Eli Zaretskii Date: Sat, 12 Sep 2020 07:11:26 +0000 (+0300) Subject: Fix compilation on TERMINFO platforms with GCC 10 X-Git-Tag: emacs-27.1.90~154 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=694acda5f2;p=emacs.git Fix compilation on TERMINFO platforms with GCC 10 * src/terminfo.c [TERMINFO]: Don't redefine UP, BC, and CP, as that could cause linking errors due to multiple definitions. (Bug#43195) --- diff --git a/src/terminfo.c b/src/terminfo.c index 51fd32e9e01..0765996401f 100644 --- a/src/terminfo.c +++ b/src/terminfo.c @@ -23,9 +23,12 @@ along with GNU Emacs. If not, see . */ /* Define these variables that serve as global parameters to termcap, so that we do not need to conditionalize the places in Emacs - that set them. */ + that set them. But don't do that for terminfo, as that could + cause link errors when using -fno-common. */ +#if !TERMINFO char *UP, *BC, PC; +#endif /* Interface to curses/terminfo library. Turns out that all of the terminfo-level routines look