zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <schizo@debian.org>
To: zsh-workers@sunsite.dk
Subject: Re: PATCH: termcap parameter support
Date: Fri, 20 Apr 2001 10:20:30 -0400	[thread overview]
Message-ID: <20010420102030.A1911@dman.com> (raw)
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 <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;


  reply	other threads:[~2001-04-20 14:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-20 13:24 Clint Adams
2001-04-20 13:39 ` Clint Adams
2001-04-20 14:20   ` Clint Adams [this message]
2001-04-20 16:18   ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010420102030.A1911@dman.com \
    --to=schizo@debian.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).