about summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-04-13 16:29:28 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-04-13 16:29:28 +0000
commit02e0363afac537a428acd616ee8124a475fddcdf (patch)
tree158b432a46b40cfe0300adb67eeb722857fd6a45 /Src/Modules
parent34f65c6f32a614adb871c0dce7d602e797c0585f (diff)
downloadzsh-02e0363afac537a428acd616ee8124a475fddcdf.tar.gz
zsh-02e0363afac537a428acd616ee8124a475fddcdf.tar.xz
zsh-02e0363afac537a428acd616ee8124a475fddcdf.zip
Fix term*.h header file collisions.
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/termcap.c4
-rw-r--r--Src/Modules/terminfo.c13
2 files changed, 17 insertions, 0 deletions
diff --git a/Src/Modules/termcap.c b/Src/Modules/termcap.c
index dad47aa17..db79a65a9 100644
--- a/Src/Modules/termcap.c
+++ b/Src/Modules/termcap.c
@@ -27,12 +27,16 @@
  *
  */
 
+#define USES_TERMCAP_H 1
 #include "termcap.mdh"
 #include "termcap.pro"
 
 /* echotc: output a termcap */
 
 #ifdef HAVE_TGETENT
+# ifdef HAVE_TERMCAP_H
+#  include <termcap.h>
+# endif
 
 /**/
 static int
diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c
index b3c3c2876..0bd318fc6 100644
--- a/Src/Modules/terminfo.c
+++ b/Src/Modules/terminfo.c
@@ -27,6 +27,7 @@
  *
  */
 
+#define USES_TERM_H 1
 #include "terminfo.mdh"
 #include "terminfo.pro"
 
@@ -34,9 +35,21 @@ static char terminfo_nam[] = "terminfo";
 
 /**/
 #ifdef HAVE_TIGETSTR
+
+/* The following two undefs are needed for Solaris 2.6 */
+# ifdef VINTR
+#  undef VINTR
+# endif
+# ifdef offsetof
+#  undef offsetof
+# endif
+
 # ifdef HAVE_CURSES_H
 #  include <curses.h>
 # endif
+# ifdef HAVE_TERM_H
+#  include <term.h>
+# endif
 
 static Param terminfo_pm;