From d89361739acdf07f0b0775c85f69abe89d57b600 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 9 May 2011 09:49:08 +0000 Subject: 29165: use term.h globally if needed at all. --- Src/system.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'Src/system.h') diff --git a/Src/system.h b/Src/system.h index 33b0af2f3..01c6738ca 100644 --- a/Src/system.h +++ b/Src/system.h @@ -850,3 +850,27 @@ extern short ospeed; #elif HAVE_STRUCT_STAT_ST_CTIMENSEC # define GET_ST_CTIME_NSEC(st) (st).st_ctimensec #endif + +#ifdef HAVE_TGETENT +# if defined(ZSH_HAVE_CURSES_H) && defined(ZSH_HAVE_TERM_H) +# define USES_TERM_H 1 +# else +# ifdef HAVE_TERMCAP_H +# define USES_TERMCAP_H 1 +# endif +# endif + +# ifdef USES_TERM_H +# ifdef HAVE_TERMIO_H +# include +# endif +# ifdef ZSH_HAVE_CURSES_H +# include "zshcurses.h" +# endif +# include "zshterm.h" +# else +# ifdef USES_TERMCAP_H +# include +# endif +# endif +#endif -- cgit 1.4.1