summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
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 */