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
+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
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
#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 */
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();