diff src/terminfo.c @ 149:538048ae2ab8 r20-3b1

Import from CVS: tag r20-3b1
author cvs
date Mon, 13 Aug 2007 09:36:16 +0200
parents 376386a54a3c
children 74fd4e045ea6
line wrap: on
line diff
--- a/src/terminfo.c	Mon Aug 13 09:35:15 2007 +0200
+++ b/src/terminfo.c	Mon Aug 13 09:36:16 2007 +0200
@@ -48,12 +48,7 @@
    format is different too.
 */
 
-#ifdef HAVE_NCURSES_CURSES_H
-#include <ncurses/curses.h>
-#else
-#include <curses.h>
-#endif
-#if !(defined (__GNUC__) && defined (SOLARIS2))
+#include CURSES_H_PATH
 /* Sun, in their infinite lameness, supplies (possibly) broken headers
    even under Solaris.  GCC feels it necessary to correct things by
    supplying its own headers.  Unfortunately, if you build GCC under
@@ -63,11 +58,8 @@
    is equally lame in that it supplies "fixed" headers for curses.h
    but not term.h.) However, it seems to work to just not include
    term.h under Solaris, so we try that.  KLUDGE! */
-#ifdef HAVE_NCURSES_TERM_H
-#include <ncurses/term.h>
-#else
-#include <term.h>
-#endif
+#if !(defined (__GNUC__) && defined (SOLARIS2))
+#include TERM_H_PATH
 #endif
 
 extern void *xmalloc (int size);