summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorToby Goodwin <tjg@star.le.ac.uk>2001-10-12 10:25:58 +0100
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:22:10 +0100
commit609a278bf6e301ea9a021793de314ddcadb806ba (patch)
treef8dac56d9eccbc46d5105d0206fe607ace82c3a8 /proto.h
parent14106ccc3b2cb03c8b9a1df1a1b3e3953aaee2f8 (diff)
beta: rc-1.6b3
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/proto.h b/proto.h
index 7d2fe2a..3f1e05b 100644
--- a/proto.h
+++ b/proto.h
@@ -77,8 +77,10 @@ extern char *sys_errlist[];
#if SETPGRP_VOID
/* Smells like POSIX: should all be ok. */
#else
-/* BSD: fake it. */
+/* Old BSD: fake it. */
#define setpgid(pid, pgrp) setpgrp(pid, pgrp)
+#include <sys/ioctl.h>
+#define tcgetpgrp(fd) ioctl((fd), TIOCGPGRP)
#define tcsetpgrp(fd, pgrp) ioctl((fd), TIOCSPGRP, &(pgrp))
#endif
@@ -86,6 +88,7 @@ extern char *sys_errlist[];
/* Nothing doing. */
#define setpgid()
+#define tcgetpgrp()
#define tcsetpgrp()
#endif /*HAVE_SETPGRP */