View | Details | Raw Unified | Return to bug 960
Collapse All | Expand All

(-)acconfig.h (+1 lines)
Lines 192-197 Link Here
192
#undef HAVE_EXIT_IN_UTMP
192
#undef HAVE_EXIT_IN_UTMP
193
#undef HAVE_TIME_IN_UTMP
193
#undef HAVE_TIME_IN_UTMP
194
#undef HAVE_TIME_IN_UTMPX
194
#undef HAVE_TIME_IN_UTMPX
195
#undef HAVE_SS_IN_UTMPX
195
196
196
/* Define if you don't want to use your system's login() call */
197
/* Define if you don't want to use your system's login() call */
197
#undef DISABLE_LOGIN
198
#undef DISABLE_LOGIN
(-)configure.ac (+6 lines)
Lines 268-273 mips-sony-bsd|mips-sony-newsos4) Link Here
268
	SONY=1
268
	SONY=1
269
	;;
269
	;;
270
*-*-netbsd*)
270
*-*-netbsd*)
271
	AC_DEFINE(DISABLE_LOGIN)
272
	AC_DEFINE_UNQUOTED(UTMPX_FILE, "/var/run/utmpx",
273
	    [Location of utmpx file])
274
	AC_DEFINE_UNQUOTED(WTMPX_FILE, "/var/log/wtmp",
275
	    [Location of wtmpx file])
271
	check_for_libcrypt_before=1
276
	check_for_libcrypt_before=1
272
	if test "x$withval" != "xno" ; then	
277
	if test "x$withval" != "xno" ; then	
273
		need_dash_r=1
278
		need_dash_r=1
Lines 2002-2007 OSSH_CHECK_HEADER_FOR_FIELD(ut_exit, utm Link Here
2002
OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmp.h, HAVE_TIME_IN_UTMP)
2007
OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmp.h, HAVE_TIME_IN_UTMP)
2003
OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmpx.h, HAVE_TIME_IN_UTMPX)
2008
OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmpx.h, HAVE_TIME_IN_UTMPX)
2004
OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmpx.h, HAVE_TV_IN_UTMPX)
2009
OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmpx.h, HAVE_TV_IN_UTMPX)
2010
OSSH_CHECK_HEADER_FOR_FIELD(ut_ss, utmpx.h, HAVE_SS_IN_UTMPX)
2005
2011
2006
AC_CHECK_MEMBERS([struct stat.st_blksize])
2012
AC_CHECK_MEMBERS([struct stat.st_blksize])
2007
2013
(-)loginrec.c (+3 lines)
Lines 744-749 construct_utmpx(struct logininfo *li, st Link Here
744
	/* ut_syslen is the length of the utx_host string */
744
	/* ut_syslen is the length of the utx_host string */
745
	utx->ut_syslen = MIN(strlen(li->hostname), sizeof(utx->ut_host));
745
	utx->ut_syslen = MIN(strlen(li->hostname), sizeof(utx->ut_host));
746
# endif
746
# endif
747
# ifdef HAVE_SS_IN_UTMPX
748
	utx->ut_ss = li->hostaddr.sa_storage;
749
# endif
747
}
750
}
748
#endif /* USE_UTMPX || USE_WTMPX */
751
#endif /* USE_UTMPX || USE_WTMPX */
749
752

Return to bug 960