Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh-2.6-beta17 : compiling on SCO - results
- X-seq: zsh-workers 1079
- From: Wayne Davison <wayne@xxxxxxxxxxxxxxxxxx>
- To: Peter Bray <pbray@xxxxxxxxxxxxxxxx>
- Subject: Re: zsh-2.6-beta17 : compiling on SCO - results
- Date: Wed, 15 May 1996 11:03:43 -0700
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: pbray's message of Wed, 15 May 1996 12:15:43 +1000. <199605150215.MAA11431@xxxxxxxxxxxxxxxxxxxx>
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..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author