summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authortjg <tjg>2000-05-25 14:31:27 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:18 +0100
commitba2b5321c58c1a7420c7d9d31c1226584537bcaa (patch)
tree4c56ff936104b936b9b8b057d5d45cb260e5ecf8 /proto.h
parent8293905f58f0cea00a03ca9bec122de84887a2be (diff)
Portability: need special runes for read() returning EIO under job
control systems.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index 7d2fe2a..517d357 100644
--- a/proto.h
+++ b/proto.h
@@ -79,6 +79,7 @@ extern char *sys_errlist[];
#else
/* BSD: fake it. */
#define setpgid(pid, pgrp) setpgrp(pid, pgrp)
+#define tcgetpgrp(fd, pgrp) ioctl((fd), TIOCGPGRP)
#define tcsetpgrp(fd, pgrp) ioctl((fd), TIOCSPGRP, &(pgrp))
#endif
@@ -86,6 +87,7 @@ extern char *sys_errlist[];
/* Nothing doing. */
#define setpgid()
+#define tcgetpgrp()
#define tcsetpgrp()
#endif /*HAVE_SETPGRP */