summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-04-24 06:48:54 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-04-24 06:48:54 +0000
commit8baeec4637c8d4cdeec63c6f023766e22afa6a48 (patch)
tree3c4a3a3c7017dd96a236beb0a43db1ff8bcb8cd7 /Src/Modules
parente2e912189359b20efc0b178fd913728e38502b3e (diff)
downloadzsh-8baeec4637c8d4cdeec63c6f023766e22afa6a48.tar.gz
zsh-8baeec4637c8d4cdeec63c6f023766e22afa6a48.tar.xz
zsh-8baeec4637c8d4cdeec63c6f023766e22afa6a48.zip
Fix term* linkage _again_.
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/termcap.c2
-rw-r--r--Src/Modules/terminfo.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Src/Modules/termcap.c b/Src/Modules/termcap.c
index 1b4107248..845d29f6d 100644
--- a/Src/Modules/termcap.c
+++ b/Src/Modules/termcap.c
@@ -362,7 +362,7 @@ int
 boot_(Module m)
 {
 #ifdef HAVE_TGETENT
-# if defined(HAVE_CURSES_H) && defined(HAVE_TERM_H)
+# ifdef HAVE_SETUPTERM
     setupterm((char *)0, 1, (int *)0);
 # endif
 
diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c
index 3e70bf279..5b9d0bdbd 100644
--- a/Src/Modules/terminfo.c
+++ b/Src/Modules/terminfo.c
@@ -347,7 +347,9 @@ int
 boot_(Module m)
 {
 #ifdef HAVE_TIGETSTR
+# ifdef HAVE_SETUPTERM
     setupterm((char *)0, 1, (int *)0);
+# endif
 
     if (!createtihash())
     	return 1;