off of __svr4__. This allows allows Solaris SunProC compiles to work.
Patch by Alex Kiernan <alexk@demon.net>
#ifndef SYSUTMP_H_INCLUDED
#define SYSUTMP_H_INCLUDED
-#ifdef HAVE_UTMP_H
+#if defined(HAVE_UTMP_H) || defined(HAVE_UTMPX_H)
/* UTMP stuff. Uses utmpx on svr4 */
-#ifdef __svr4__
+#ifdef HAVE_UTMPX_H
# include <utmpx.h>
# include <sys/fcntl.h>
# define utmp utmpx
fullname(ut.ut_name),
"shell",
ttyshort(ut.ut_line),
-#ifdef __svr4__
+#ifdef HAVE_UTMPX_H
dotime(ut.ut_xtime),
#else
dotime(ut.ut_time),
ut.ut_name,
ttyshort(ut.ut_line),
"shell",
-#ifdef __svr4__
+#ifdef HAVE_UTMPX_H
dotime(ut.ut_xtime),
#else
dotime(ut.ut_time),
strncpy(ut.ut_host, buf, UT_HOSTSIZE);
}
#endif
-#ifdef __svr4__
+#ifdef HAVE_UTMPX_H
ut.ut_xtime = t- delay;
#else
ut.ut_time = t - delay;