From abb71310d266492e74447eb25e1f99fd75a5ac77 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 18 Sep 1991 09:46:08 +0000 Subject: [PATCH] signal stuff not included on BSD 4.2 or SunOs --- lang/occam/lib/channel.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lang/occam/lib/channel.c b/lang/occam/lib/channel.c index fc92b1990..0aebbf62f 100644 --- a/lang/occam/lib/channel.c +++ b/lang/occam/lib/channel.c @@ -1,7 +1,9 @@ /* $Header$ */ /* channel.c - basic channel handling routines */ #include +#ifndef __BSD4_2 #include +#endif #define __CHANNEL__ #ifdef __USG #include @@ -112,7 +114,9 @@ void chan_out(v, c) long v; register chan *c; } } +#ifndef __BSD4_2 static int timeout(); +#endif int chan_any(c) register chan *c; { @@ -189,6 +193,7 @@ int chan_any(c) register chan *c; } } +#ifndef __BSD4_2 /* The ch=getc(fp) in the above function calls read(2) to do its task, but if * there's no input on the file (pipe or terminal) then the read will block. * To stop this read from blocking, we use the fact that if the read is @@ -204,6 +209,7 @@ static int timeout(sig) signal(SIGALRM, timeout); alarm(1); } +#endif static void disaster() {