]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/sysdep.c: Move include term.h last of includes (Bug#6812).
authorJan D <jan.h.d@swipnet.se>
Fri, 6 Aug 2010 17:38:01 +0000 (19:38 +0200)
committerJan D <jan.h.d@swipnet.se>
Fri, 6 Aug 2010 17:38:01 +0000 (19:38 +0200)
src/ChangeLog
src/sysdep.c

index 48968c0a97fe3dcebc82b4c290a1c040a74f639b..30b73ffdf4f27a358972fd62fe8794ec6722e3b9 100644 (file)
@@ -1,3 +1,7 @@
+2010-08-06  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * sysdep.c: Move include term.h last of includes (Bug#6812).
+
 2010-08-06  Eli Zaretskii  <eliz@gnu.org>
 
        * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
index 678f4a6faea89dd9a765cb7cae5eef623e8a1471..6e5adc8ec877ae4a65b9612b531c8b4cadf1781b 100644 (file)
@@ -33,9 +33,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-#ifdef HAVE_TERM_H
-#include <term.h>
-#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 <term.h>
+#endif
 
 /* For serial_configure and serial_open.  */
 extern Lisp_Object QCport, QCspeed, QCprocess;