summary refs log tree commit diff
path: root/Src/Modules/termcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Modules/termcap.c')
-rw-r--r--Src/Modules/termcap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/Modules/termcap.c b/Src/Modules/termcap.c
index e48c8a16f..4ce73bd45 100644
--- a/Src/Modules/termcap.c
+++ b/Src/Modules/termcap.c
@@ -55,7 +55,9 @@ static char termcap_nam[] = "termcap";
 #  ifdef HAVE_TERMIO_H
 #   include <termio.h>
 #  endif
-#  include <curses.h>
+#  ifdef TERM_H_NEEDS_CURSES_H
+#   include <curses.h>
+#  endif
 #  include <term.h>
 # else
 #  ifdef USES_TERMCAP_H