From ce6018836c422c86a729ba39fe5433ec11b87b02 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Sun, 14 Sep 1997 18:12:16 +0000 Subject: Pull in sources from zephyr locker. See /mit/zephyr/repository for detailed change information. --- zwgc/mux.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'zwgc/mux.c') diff --git a/zwgc/mux.c b/zwgc/mux.c index a682267..221ae8b 100644 --- a/zwgc/mux.c +++ b/zwgc/mux.c @@ -12,8 +12,10 @@ * "mit-copyright.h". */ +#include + #if (!defined(lint) && !defined(SABER)) -static char rcsid_mux_c[] = "$Id$"; +static const char rcsid_mux_c[] = "$Id$"; #endif /****************************************************************************/ @@ -22,12 +24,6 @@ static char rcsid_mux_c[] = "$Id$"; /* */ /****************************************************************************/ -#include -#include -#include -#include -#include -#include #include #include "mux.h" #include "error.h" @@ -201,7 +197,7 @@ static int check_tty() if (tty < 0) return 0; -#if defined(POSIX) || defined(SUNOS) +#if defined(_POSIX_VERSION) result = ( ((pgrp = tcgetpgrp(tty)) < 0) ? 0 : 1 ); #else result = ( (ioctl(tty, TIOCGPGRP, &pgrp) < 0) ? 0 : 1 ); -- cgit v1.2.3