From 8646d999c5360d8f627542c619bd7ccfe52b6066 Mon Sep 17 00:00:00 2001 From: Jan D Date: Fri, 6 Aug 2010 19:38:01 +0200 Subject: [PATCH] * src/sysdep.c: Move include term.h last of includes (Bug#6812). --- src/ChangeLog | 4 ++++ src/sysdep.c | 9 ++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 48968c0a97f..30b73ffdf4f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2010-08-06 Jan Djärv + + * sysdep.c: Move include term.h last of includes (Bug#6812). + 2010-08-06 Eli Zaretskii * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs. diff --git a/src/sysdep.c b/src/sysdep.c index 678f4a6faea..6e5adc8ec87 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -33,9 +33,6 @@ along with GNU Emacs. If not, see . */ #ifdef HAVE_UNISTD_H #include #endif -#ifdef HAVE_TERM_H -#include -#endif #include "lisp.h" /* Including stdlib.h isn't necessarily enough to get srandom @@ -110,6 +107,12 @@ extern int quit_char; #include "dispextern.h" #include "process.h" #include "cm.h" /* for reset_sys_modes */ +#ifdef HAVE_TERM_H +/* Include this last. If it is ncurses header file, it adds a lot of + defines that interfere with stuff in other headers. Someone responsible + for ncurses messed up bigtime. See bug#6812. */ +#include +#endif /* For serial_configure and serial_open. */ extern Lisp_Object QCport, QCspeed, QCprocess; -- 2.39.2