From 9e93c5f65a22824f6b4af7ee68944f2226f7efa7 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 26 Jun 2011 13:50:36 +0200 Subject: Simply define LLOG_FILE and TTYS_FILE unconditionally. It doesn't matter if we define these pathnames, even if we're not going to use them in the code itself. It is already done that way for utmp and wtmp. Signed-off-by: Ed Schouten Signed-off-by: Alan Coopersmith --- sessreg.h | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/sessreg.h b/sessreg.h index cf721c8..0b93dc7 100644 --- a/sessreg.h +++ b/sessreg.h @@ -103,18 +103,13 @@ # define UTMP_FILE "/etc/utmp" # endif #endif -#ifndef NO_LASTLOG -# ifndef LLOG_FILE -# ifdef _PATH_LASTLOG -# define LLOG_FILE _PATH_LASTLOG -# else -# define LLOG_FILE "/usr/adm/lastlog" -# endif +#ifndef LLOG_FILE +# ifdef _PATH_LASTLOG +# define LLOG_FILE _PATH_LASTLOG +# else +# define LLOG_FILE "/usr/adm/lastlog" # endif #endif -#ifndef SYSV -# ifndef TTYS_FILE -# define TTYS_FILE "/etc/ttys" -# endif +#ifndef TTYS_FILE +# define TTYS_FILE "/etc/ttys" #endif - -- cgit v1.2.3