Index: term.c =================================================================== --- term.c (revision 11750) +++ term.c (working copy) @@ -64,9 +64,13 @@ #ifdef HAVE_NCURSES_H #include #endif -/* Solaris's term.h does horrid things. */ -#if (defined(HAVE_TERM_H) && !defined(SUNOS)) -#include +#include "term.h" +#if defined(SUNOS) +/* Can not use /usr/include/term.h because of a lot of incompatabilities, so just define some prototypes */ +extern int tgetent(char *, const char *); +extern int tgetflag(const char *); +extern int tgetnum(const char *); +extern char *tgetstr(const char *, char **); #endif #include #include