diff options
author | Theodore Tso <tytso@mit.edu> | 1995-08-05 00:33:45 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1995-08-05 00:33:45 +0000 |
commit | d812e98d84f3b793c0d6efdcc93e17d6f8ddcb95 (patch) | |
tree | 34f9fe8157ca98ff5cc5df04bbb3fd626a0dd89b /src | |
parent | fa8bfd41040a40546b67e0e8925bfb36c5e41e09 (diff) | |
download | krb5-d812e98d84f3b793c0d6efdcc93e17d6f8ddcb95.tar.gz krb5-d812e98d84f3b793c0d6efdcc93e17d6f8ddcb95.tar.xz krb5-d812e98d84f3b793c0d6efdcc93e17d6f8ddcb95.zip |
libpty.h (pty_cleanup): Fix argument type of pid to patch that used in the
C file. Include <utmpx.h> if present. Only include <utmp.h>
if it is present.
configure.in: Check for utmp.h and utmpx.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6422 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/util/pty/ChangeLog | 8 | ||||
-rw-r--r-- | src/util/pty/configure.in | 2 | ||||
-rw-r--r-- | src/util/pty/libpty.h | 7 |
3 files changed, 15 insertions, 2 deletions
diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index bd625eba0f..fc626203a1 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,3 +1,11 @@ +Fri Aug 4 13:59:11 1995 Theodore Y. Ts'o <tytso@dcl> + + * libpty.h (pty_cleanup): Fix argument type of pid to patch that + used in the C file. Include <utmpx.h> if present. Only + include <utmp.h> if it is present. + + * configure.in: Check for utmp.h and utmpx.h + Fri Aug 4 00:59:20 1995 Tom Yu <tlyu@dragons-lair.MIT.EDU> * Makefile.in: use libupdate so to not get multiple copies of diff --git a/src/util/pty/configure.in b/src/util/pty/configure.in index 76a6116529..9282a99a46 100644 --- a/src/util/pty/configure.in +++ b/src/util/pty/configure.in @@ -40,7 +40,7 @@ AC_FUNC_CHECK(ptsname,AC_DEFINE(HAVE_PTSNAME)) AC_FUNC_CHECK(grantpt,AC_DEFINE(HAVE_GRANTPT)) AC_FUNC_CHECK(openpty,AC_DEFINE(HAVE_OPENPTY)) AC_FUNC_CHECK(logwtmp,AC_DEFINE(HAVE_LOGWTMP)) -AC_CHECK_HEADERS(unistd.h stdlib.h string.h sys/filio.h sys/sockio.h sys/label.h sys/tty.h ttyent.h lastlog.h sys/select.h sys/ptyvar.h) +AC_CHECK_HEADERS(unistd.h stdlib.h string.h utmpx.h utmp.h sys/filio.h sys/sockio.h sys/label.h sys/tty.h ttyent.h lastlog.h sys/select.h sys/ptyvar.h) AC_REPLACE_FUNCS(getdtablesize) DECLARE_SYS_ERRLIST KRB5_SIGTYPE diff --git a/src/util/pty/libpty.h b/src/util/pty/libpty.h index b24d97e3dd..07b34fc386 100644 --- a/src/util/pty/libpty.h +++ b/src/util/pty/libpty.h @@ -19,7 +19,12 @@ #ifndef __LIBPTY_H__ #include <sys/types.h> +#ifdef HAVE_UTMP_H #include <utmp.h> +#endif +#ifdef HAVE_UTMPX_H +#include <utmpx.h> +#endif #ifdef __STDC__ /* use prototypes */ @@ -35,7 +40,7 @@ long pty_update_utmp (struct utmp *ut, char *user, char *line, char *host); long pty_update_wtmp (struct utmp *ut); long pty_logwtmp (char *tty, char * user, char *host); -long pty_cleanup(char *slave, int pid, int update_utmp); +long pty_cleanup(char *slave, pid_t pid, int update_utmp); #else /*__STDC__*/ long pty_init(); long pty_getpty(); |