From 9792646873ac0e597cc65ef4a056444fd8f9a7fd Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sat, 16 Jan 2010 18:33:53 +0000 Subject: Allow sessreg to be built without . As of 9.0, FreeBSD will only support . It only implements the POSIX interface with minor extensions. There is no need to write to wtmp and lastlog separately, because this is already done by pututxline(). Add additional checks to configure.ac to search for the presence of utmpxname() and updwtmpx(). Signed-off-by: Ed Schouten Signed-off-by: Alan Coopersmith --- sessreg.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sessreg.h') diff --git a/sessreg.h b/sessreg.h index 6583d57..6b3edc2 100644 --- a/sessreg.h +++ b/sessreg.h @@ -51,13 +51,15 @@ #include #include -#include + +#ifdef HAVE_UTMP_H +# include +# define USE_UTMP +#endif #ifdef HAVE_UTMPX_H -# if HAVE_UTMPX_UT_SYSLEN -# include -# define USE_UTMPX -# endif +# include +# define USE_UTMPX #endif #ifdef HAVE_SYS_PARAM_H -- cgit v1.2.3