mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
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)
This commit is contained in:
parent
f3373901e5
commit
694acda5f2
@ -23,9 +23,12 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
|
||||
|
||||
/* 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
|
||||
|
Loading…
Reference in New Issue
Block a user