zsh-workers
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayne@tenor.clarinet.com>
To: Peter Bray <pbray@ind.tansu.com.au>
Cc: zsh-workers@math.gatech.edu
Subject: Re: zsh-2.6-beta17 : compiling on SCO - results
Date: Wed, 15 May 1996 11:03:43 -0700	[thread overview]
Message-ID: <199605151803.LAA09248@tenor.clari.net> (raw)
In-Reply-To: pbray's message of Wed, 15 May 1996 12:15:43 +1000. <199605150215.MAA11431@cod.ind.tansu.com.au>

Peter Bray writes:
> host operating system : sco3.2v4.2

Here's the patches I used to apply to zsh when I compiled it for
this version of sco.  The first change allows zsh to accept tty
changes via things like stty.  It does have the effect of allowing
all program to change the tty settings (even the background ones),
but that's the best SCO can do since they have a bug in their
library.  SCO 5 doesn't have this problem, so it would have to
be made conditional for only older versions of SCO, and I never
figured out how best to conditionalize this (because we got rid
of SCO from my machine).

The line numbers will be a little off, since this patch was
last applied to beta 14.

Index: jobs.c
@@ -133,6 +133,10 @@
     }
 
     pgrp = gettygrp();           /* get process group of tty      */
+#ifdef __sco
+    if (pgrp == mypgrp)
+	pgrp = jn->gleader;
+#endif
 
     /* is this job in the foreground of an interactive shell? */
     if ((jn->gleader == pgrp || (pgrp > 1 && kill(-pgrp, 0) == -1)) &&
Index: system.h
@@ -110,7 +110,7 @@
  * that doesn't have gettimeofday.  Of course we *
  * probably will move to the POSIX time function *
  *  anyway.                                      */
-#ifdef __sco
+#ifdef __old_sco
 struct timezone {
     short minutes;
 };
@@ -119,7 +119,7 @@
 /* Sco needs the following include for struct utimbuf *
  * which is strange considering we do not use that    *
  * anywhere in the code                               */
-#ifdef __sco
+#ifdef __old_sco
 # include <utime.h>
 #endif
 
@@ -215,7 +215,7 @@
 # define WSTOPSIG(X) (((X)>>8)&0377)
 #endif
 
-#ifdef HAVE_SYS_SELECT_H
+#if defined(HAVE_SYS_SELECT_H) && !defined(__sco)
 # include <sys/select.h>
 #endif
 

..wayne..



  parent reply	other threads:[~1996-05-15 18:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-15  2:15 Peter Bray
1996-05-15  8:36 ` Jos Backus
1996-05-15 15:45 ` Zoltan Hidvegi
1996-05-15 18:03 ` Wayne Davison [this message]
1996-05-15  9:15 Joachim Reith

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=199605151803.LAA09248@tenor.clari.net \
    --to=wayne@tenor.clarinet.com \
    --cc=pbray@ind.tansu.com.au \
    --cc=zsh-workers@math.gatech.edu \
    /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).