+Mon Aug 7 14:44:21 EDT 1995 Paul Park (pjpark@mit.edu)
+ * configure.in, sys_term.c - Use utmpx.h if present, then check for
+ utmp.h. Add logic to handle ut_tv from utmpx.h.
+
+
Mon Aug 7 13:08:39 EDT 1995 Paul Park (pjpark@mit.edu)
* configure.in - Add check for utmp.h. Make check for utmpx.h define
additional symbol to work with libpty.h.
AC_HEADER_CHECK(sys/stream.h,AC_DEFINE(STREAMS))
AC_HEADER_CHECK(utmpx.h,
AC_DEFINE(UTMPX)
- AC_DEFINE(HAVE_UTMPX_H))
+ AC_DEFINE(HAVE_UTMPX_H)
+ ac_utmp_h=1)
+if test -z "$ac_utmp_h" ; then
AC_CHECK_HEADERS(utmp.h)
+fi
AC_FUNC_CHECK(cgetent,AC_DEFINE(HAS_CGETENT))
AC_MSG_CHECKING([if setpgrp takes two arguments])
dnl
/*
* Create utmp entry for child
*/
+#ifdef UTMPX
+ (void) time(&wtmp.ut_tv.tv_sec);
+ wtmp.ut_tv.tv_usec = 0;
+#else /* UTMPX */
(void) time(&wtmp.ut_time);
+#endif /* UTMPX */
wtmp.ut_type = LOGIN_PROCESS;
wtmp.ut_pid = getpid();