Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: termcap parameter support



> /opt/SUNWspro/bin/cc -c -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -DMODULE -O -Kpic -o termcap..o termcap.c
> "/usr/include/iso/stddef_iso.h", line 73: warning: macro redefined: offsetof
> "/usr/include/term.h", line 1060: incomplete struct/union/enum termio: Ottyb

This makes termcap.c compile happily on Debian and Solaris 8.
This should probably be replaced by some more intelligent configure tests.

Index: Src/Modules/termcap.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/termcap.c,v
retrieving revision 1.5
diff -u -r1.5 termcap.c
--- Src/Modules/termcap.c	2001/04/20 13:31:26	1.5
+++ Src/Modules/termcap.c	2001/04/20 14:14:40
@@ -39,13 +39,19 @@
 #ifdef HAVE_TGETENT
 # ifdef HAVE_TERMCAP_H
 #  include <termcap.h>
-# endif
-
-# ifdef HAVE_CURSES_H
-#  include <curses.h>
-# endif
-# ifdef HAVE_TERM_H
-#  include <term.h>
+#  ifdef HAVE_TERM_H
+#   include <term.h>
+#  endif
+# else
+#  ifdef HAVE_TERMIO_H
+#   include <termio.h>
+#  endif
+#  ifdef HAVE_CURSES_H
+#   include <curses.h>
+#  endif
+#  ifdef HAVE_TERM_H
+#   include <term.h>
+#  endif
 # endif
 
 static Param termcap_pm;



Messages sorted by: Reverse Date, Date, Thread, Author