From 02e0363afac537a428acd616ee8124a475fddcdf Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Fri, 13 Apr 2001 16:29:28 +0000 Subject: Fix term*.h header file collisions. --- Src/Modules/terminfo.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Src/Modules/terminfo.c') diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c index b3c3c2876..0bd318fc6 100644 --- a/Src/Modules/terminfo.c +++ b/Src/Modules/terminfo.c @@ -27,6 +27,7 @@ * */ +#define USES_TERM_H 1 #include "terminfo.mdh" #include "terminfo.pro" @@ -34,9 +35,21 @@ static char terminfo_nam[] = "terminfo"; /**/ #ifdef HAVE_TIGETSTR + +/* The following two undefs are needed for Solaris 2.6 */ +# ifdef VINTR +# undef VINTR +# endif +# ifdef offsetof +# undef offsetof +# endif + # ifdef HAVE_CURSES_H # include # endif +# ifdef HAVE_TERM_H +# include +# endif static Param terminfo_pm; -- cgit 1.4.1