diff options
author | Mark Eichin <eichin@mit.edu> | 1994-08-08 05:09:31 +0000 |
---|---|---|
committer | Mark Eichin <eichin@mit.edu> | 1994-08-08 05:09:31 +0000 |
commit | 7985cbf308ddb59d5f98e884604adc546fc3a842 (patch) | |
tree | 1faf9017f540fbb7a46488c1504b90bc70213cf0 /src/appl/telnet/telnetd | |
parent | be033c87a3655383f41884d0a2169956187527e8 (diff) | |
download | krb5-7985cbf308ddb59d5f98e884604adc546fc3a842.tar.gz krb5-7985cbf308ddb59d5f98e884604adc546fc3a842.tar.xz krb5-7985cbf308ddb59d5f98e884604adc546fc3a842.zip |
handle systems where setpgrp takes no args
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4062 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/telnet/telnetd')
-rw-r--r-- | src/appl/telnet/telnetd/configure.in | 3 | ||||
-rw-r--r-- | src/appl/telnet/telnetd/sys_term.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/appl/telnet/telnetd/configure.in b/src/appl/telnet/telnetd/configure.in index 905a138041..47fbc29759 100644 --- a/src/appl/telnet/telnetd/configure.in +++ b/src/appl/telnet/telnetd/configure.in @@ -26,4 +26,7 @@ AC_HEADER_CHECK(sys/filio.h,AC_DEFINE(FILIO_H)) AC_HEADER_CHECK(sys/stream.h,AC_DEFINE(STREAMS)) AC_HEADER_CHECK(utmpx.h,AC_DEFINE(UTMPX)) AC_FUNC_CHECK(cgetent,AC_DEFINE(HAS_CGETENT)) +AC_COMPILE_CHECK([number of arguments to setpgrp], +[#include <unistd.h>],[setpgrp(0,0)], +AC_DEFINE(SETPGRP_TWOARG)) AC_OUTPUT(Makefile,[EXTRA_RULES]) diff --git a/src/appl/telnet/telnetd/sys_term.c b/src/appl/telnet/telnetd/sys_term.c index d356f23545..9add8e361c 100644 --- a/src/appl/telnet/telnetd/sys_term.c +++ b/src/appl/telnet/telnetd/sys_term.c @@ -188,6 +188,10 @@ int ttyfd = -1; # endif #endif /* USE_TERMIO */ +#ifndef SETPGRP_TWOARG +#define setpgrp(a,b) setpgrp() +#endif + /* * init_termbuf() * copy_termbuf(cp) |