Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: termcap parameter support
- X-seq: zsh-workers 14055
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: termcap parameter support
- Date: Fri, 20 Apr 2001 10:20:30 -0400
- In-reply-to: <20010420093918.A32344@xxxxxxxx>; from schizo@xxxxxxxxxx on Fri, Apr 20, 2001 at 09:39:18AM -0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20010420092436.A31032@xxxxxxxx> <20010420093918.A32344@xxxxxxxx>
> /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