summaryrefslogtreecommitdiff
path: root/sessreg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sessreg.h')
-rw-r--r--sessreg.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/sessreg.h b/sessreg.h
index 0b93dc7..a5e7f83 100644
--- a/sessreg.h
+++ b/sessreg.h
@@ -67,19 +67,12 @@
# include <sys/param.h>
#endif
-#ifndef HAVE_LASTLOG_H
-# define NO_LASTLOG
-#endif
-
-#ifndef NO_LASTLOG
-# ifdef CSRG_BASED
-# if (BSD < 199103)
-# include <lastlog.h>
-# endif
-# else
-# include <lastlog.h>
+#if defined(HAVE_STRUCT_LASTLOG) && defined(HAVE_PWD_H)
+# ifdef HAVE_LASTLOG_H
+# include <lastlog.h>
# endif
-# include <pwd.h>
+# include <pwd.h>
+# define USE_LASTLOG
#endif
#ifdef CSRG_BASED