about summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-10-24 08:47:43 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-10-24 08:47:43 +0000
commit7988fa65fec5a1a84395fad2a92892fd62ba55c0 (patch)
tree1c2e3737af2135ba99b45c12f492294e73114d06 /Src/Modules
parentf9f16d936441f494a60c881fde9265016754268e (diff)
downloadzsh-7988fa65fec5a1a84395fad2a92892fd62ba55c0.tar.gz
zsh-7988fa65fec5a1a84395fad2a92892fd62ba55c0.tar.xz
zsh-7988fa65fec5a1a84395fad2a92892fd62ba55c0.zip
24016: compilation with curses and not ncurses
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/curses.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/Src/Modules/curses.c b/Src/Modules/curses.c
index 8c9fed4ad..dd38b5e95 100644
--- a/Src/Modules/curses.c
+++ b/Src/Modules/curses.c
@@ -29,7 +29,17 @@
 
 #define _XOPEN_SOURCE_EXTENDED 1
 
-#include <ncurses.h>
+#include "curses.mdh"
+#include "curses.pro"
+
+#ifdef HAVE_NCURSES_H
+# include <ncurses.h>
+#else
+# ifdef HAVE_CURSES_H
+#  include <curses.h>
+# endif
+#endif
+
 #ifndef MULTIBYTE_SUPPORT
 # undef HAVE_SETCCHAR
 # undef HAVE_WADDWSTR
@@ -41,9 +51,6 @@
 
 #include <stdio.h>
 
-#include "curses.mdh"
-#include "curses.pro"
-
 typedef struct zc_win {
     WINDOW *win;
     char *name;