diff options
Diffstat (limited to 'tdm/backend/sessreg.c')
-rw-r--r-- | tdm/backend/sessreg.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tdm/backend/sessreg.c b/tdm/backend/sessreg.c index b507f8141..4167a16e3 100644 --- a/tdm/backend/sessreg.c +++ b/tdm/backend/sessreg.c @@ -42,6 +42,13 @@ from The Open Group. #if defined(__svr4__) || defined(__Lynx__) || defined(__QNX__) || defined(__APPLE__) || defined(_SEQUENT_) /*|| defined(USE_PAM)*/ # define NO_LASTLOG #endif + +#ifdef __FreeBSD__ +# include <sys/param.h> +# if __FreeBSD_version >= 900007 +# define NO_LASTLOG +# endif +#endif #ifndef NO_LASTLOG # ifdef HAVE_LASTLOG_H @@ -254,7 +261,9 @@ sessreg( struct display *d, int pid, const char *user, int uid ) close( utmp ); } # else +# if !defined(__FreeBSD__) UTMPNAME( UTMP_FILE ); +# endif SETUTENT(); PUTUTLINE( &ut_ent ); ENDUTENT(); |