summaryrefslogtreecommitdiff
path: root/zwgc
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>1994-11-01 11:11:37 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>1994-11-01 11:11:37 +0000
commita59d01bd544c2c51751d0a83a9df71e9058364f0 (patch)
tree31e59557d417e54ee2d87bfe8103c8b266dfe323 /zwgc
parentf6dbeb1d383fd68348dfb2092ff02401261cd338 (diff)
SunOS wants POSIX tcgetpgrp().
Diffstat (limited to 'zwgc')
-rw-r--r--zwgc/mux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zwgc/mux.c b/zwgc/mux.c
index 958e885..4031577 100644
--- a/zwgc/mux.c
+++ b/zwgc/mux.c
@@ -199,7 +199,7 @@ static int check_tty()
if (tty < 0) return 0;
-#ifdef POSIX
+#ifdef defined(POSIX) || defined(SUNOS)
result = ( ((pgrp = tcgetpgrp(tty)) < 0) ? 0 : 1 );
#else
result = ( (ioctl(tty, TIOCGPGRP, &pgrp) < 0) ? 0 : 1 );