summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Modules/terminfo.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3a44cc715..1c515507e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-07  Clint Adams  <clint@zsh.org>
+
+	* 24171: Src/Modules/terminfo.c: define USE_TERMINFO_MODULE when
+	ncurses.h, ncurses/ncurses.h, or ncursesw/ncurses.h is present.
+
 2007-12-06  Clint Adams  <clint@zsh.org>
 
 	* 24169: Completion/Unix/Command/_cut: use print in command
diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c
index 15bd913f6..559dbaaec 100644
--- a/Src/Modules/terminfo.c
+++ b/Src/Modules/terminfo.c
@@ -30,7 +30,7 @@
 #define USES_TERM_H 1
 #include "terminfo.mdh"
 
-#if defined(HAVE_TIGETFLAG) && defined(HAVE_CURSES_H)
+#if defined(HAVE_TIGETFLAG) && (defined(HAVE_CURSES_H) || defined(HAVE_NCURSES_H) || defined(HAVE_NCURSES_NCURSES_H) || defined(NCURSESW_NCURSES_H))
 # define USE_TERMINFO_MODULE 1
 #else
 # undef USE_TERMINFO_MODULE