Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!csun!kithrup!sef From: sef@kithrup.com (Sean Eric Fagan) Newsgroups: comp.sources.d Subject: trn and SCO UNIX Message-ID: <1991Jan07.070408.27368@kithrup.COM> Date: 7 Jan 91 07:04:08 GMT Sender: sef@kithrup.COM (Sean Eric Fagan) Organization: Kithrup Enterprises, Ltd. Lines: 64 Included below are the diffs to get the latest posting of trn working under sco unix (including job control). Note that I have not included diffs to mt.check.SH, which, again, was not distributed correctly (all you have to do is add a !GROK!THIS! to the end, in case you haven't figured it out already). I will try building it with gcc later, and will post any diffs necessary for that, if there are any (I don't really expect any). Share and enjoy! --- snip snip --- *** INTERN.h.00 Sat Jan 5 01:43:21 1991 --- INTERN.h Sun Jan 6 22:17:48 1991 *************** *** 13,15 **** --- 13,16 ---- #define INIT(x) = x #define DOINIT + *** term.c.00 Sat Jan 5 01:42:06 1991 --- term.c Sun Jan 6 22:13:49 1991 *************** *** 776,781 **** --- 776,782 ---- int_count = 0; errno = 0; if (read_tty(whatbuf,1) < 0) + if (errno != EINTR) { if (!errno) errno = EINTR; else { *************** *** 782,787 **** --- 783,789 ---- perror(readerr); sig_catcher(0); } + } #ifdef PUSHBACK if (*whatbuf & 0200 || no_macros) { *whatbuf &= 0177; *** util.c.00 Sat Jan 5 01:41:17 1991 --- util.c Sun Jan 6 22:33:17 1991 *************** *** 56,62 **** --- 56,64 ---- char *s, *shl; { int status, pid, w; + #ifndef __STDC__ SIGRET (*signal())(); + #endif /* ! __STDC__ */ char *shell; #ifdef SIGTSTP --- snip snip --- -- Sean Eric Fagan | "I made the universe, but please don't blame me for it; sef@kithrup.COM | I had a bellyache at the time." -----------------+ -- The Turtle (Stephen King, _It_) Any opinions expressed are my own, and generally unpopular with others.