diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2011-05-09 09:49:08 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2011-05-09 09:49:08 +0000 |
commit | d89361739acdf07f0b0775c85f69abe89d57b600 (patch) | |
tree | ded652c4758d749b718d72491a95f9f2acdf427d /Src/system.h | |
parent | 70fd751a823ddc5fa9cfe696700edb5a4f2067bb (diff) | |
download | zsh-d89361739acdf07f0b0775c85f69abe89d57b600.tar.gz zsh-d89361739acdf07f0b0775c85f69abe89d57b600.tar.xz zsh-d89361739acdf07f0b0775c85f69abe89d57b600.zip |
29165: use term.h globally if needed at all.
Diffstat (limited to 'Src/system.h')
-rw-r--r-- | Src/system.h | 24 |
1 files changed, 24 insertions, 0 deletions
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 <termio.h> +# endif +# ifdef ZSH_HAVE_CURSES_H +# include "zshcurses.h" +# endif +# include "zshterm.h" +# else +# ifdef USES_TERMCAP_H +# include <termcap.h> +# endif +# endif +#endif |