--- export/src/term.c 2007-08-31 00:02:46.000000000 +0200 +++ ../src/term.c 2007-08-31 00:03:08.000000000 +0200 @@ -51,19 +51,18 @@ #include #include #include -#ifdef HAVE_TERMCAP_H -#include -#endif + #ifdef HAVE_CURSES_H -#include -#endif -#ifdef HAVE_NCURSES_H -#include +# include +#elif HAVE_NCURSES_H +# include #endif + /* Solaris's term.h does horrid things. */ -#if (defined(HAVE_TERM_H) && !defined(SUNOS)) -#include +#if (defined(HAVE_TERM_H) && !defined(_SUNOS)) +# include #endif + #include #include