From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5868 invoked from network); 20 Apr 2001 14:20:42 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 20 Apr 2001 14:20:42 -0000 Received: (qmail 19942 invoked by alias); 20 Apr 2001 14:20:34 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14055 Received: (qmail 19903 invoked from network); 20 Apr 2001 14:20:32 -0000 Date: Fri, 20 Apr 2001 10:20:30 -0400 From: Clint Adams To: zsh-workers@sunsite.dk Subject: Re: PATCH: termcap parameter support Message-ID: <20010420102030.A1911@dman.com> References: <20010420092436.A31032@dman.com> <20010420093918.A32344@dman.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010420093918.A32344@dman.com>; from schizo@debian.org on Fri, Apr 20, 2001 at 09:39:18AM -0400 > /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 -# endif - -# ifdef HAVE_CURSES_H -# include -# endif -# ifdef HAVE_TERM_H -# include +# ifdef HAVE_TERM_H +# include +# endif +# else +# ifdef HAVE_TERMIO_H +# include +# endif +# ifdef HAVE_CURSES_H +# include +# endif +# ifdef HAVE_TERM_H +# include +# endif # endif static Param termcap_pm;