diff options
author | Clint Adams <clint@users.sourceforge.net> | 2007-12-05 15:21:22 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2007-12-05 15:21:22 +0000 |
commit | 6dc3cbafb1094d906a396bcd4f85656e34b9b7ee (patch) | |
tree | 61e42ec06c82dd7d88bb373b4d3e6a3b74fd0e4e /Src/Modules/terminfo.c | |
parent | 4592751f32cfd2e49147ac0b58f168ada091d73a (diff) | |
download | zsh-6dc3cbafb1094d906a396bcd4f85656e34b9b7ee.tar.gz zsh-6dc3cbafb1094d906a396bcd4f85656e34b9b7ee.tar.xz zsh-6dc3cbafb1094d906a396bcd4f85656e34b9b7ee.zip |
24160: build terminfo module if ncursesw is present but curses.h is not.
Diffstat (limited to 'Src/Modules/terminfo.c')
-rw-r--r-- | Src/Modules/terminfo.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c index 63cbd2abc..15bd913f6 100644 --- a/Src/Modules/terminfo.c +++ b/Src/Modules/terminfo.c @@ -49,7 +49,28 @@ # undef offsetof # endif -# include <curses.h> +#ifdef ZSH_IGNORE_NCURSES +# ifdef HAVE_CURSES_H +# include <curses.h> +# endif +#else +# ifdef HAVE_NCURSESW_NCURSES_H +# include <ncursesw/ncurses.h> +# else +# ifdef HAVE_NCURSES_NCURSES_H +# include <ncurses/ncurses.h> +# else +# ifdef HAVE_NCURSES_H +# include <ncurses.h> +# else +# ifdef HAVE_CURSES_H +# include <curses.h> +# endif +# endif +# endif +# endif +#endif + # ifdef HAVE_TERM_H # include <term.h> # endif |