diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2015-06-12 02:56:58 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-06-12 02:56:58 +0200 |
commit | 08122b137e76ffcf7067f634a7668002732e11d9 (patch) | |
tree | 30507bd9b39b46525b8941f1986dff2fa30f03af /tdm/backend/sessreg.c | |
parent | e1d8ccc637042d5ab84b0d532590f4cf8ef8e567 (diff) | |
download | tdebase-08122b137e76ffcf7067f634a7668002732e11d9.tar.gz tdebase-08122b137e76ffcf7067f634a7668002732e11d9.zip |
Fix FTBFS on freebsd
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
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(); |