diff options
Diffstat (limited to 'zwgc/mux.c')
-rw-r--r-- | zwgc/mux.c | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -12,8 +12,10 @@ * "mit-copyright.h". */ +#include <sysdep.h> + #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 <sys/types.h> -#include <sys/time.h> -#include <sys/file.h> -#include <fcntl.h> -#include <errno.h> -#include <stdio.h> #include <zephyr/zephyr.h> #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 ); |