summaryrefslogtreecommitdiff
path: root/zwgc/mux.c
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>1997-09-14 18:12:16 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>1997-09-14 18:12:16 +0000
commitce6018836c422c86a729ba39fe5433ec11b87b02 (patch)
treecc2e6601489384fcf41e0565e8906822897b46c8 /zwgc/mux.c
parentac16f380e349fa39ec7e26bccb5456cb300006a5 (diff)
Pull in sources from zephyr locker. See /mit/zephyr/repository for
detailed change information.
Diffstat (limited to 'zwgc/mux.c')
-rw-r--r--zwgc/mux.c12
1 files changed, 4 insertions, 8 deletions
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 <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 );