From 7ff048524c4a3d24d92848916225d0e95a7677f7 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 8 Aug 2024 08:00:00 +0000 Subject: configure.ac: do not check for lastlog.h, utmp.h, and utmpx.h Given that utmp.h is included unconditionally in other modules, and neither utmpx.h nor lastlog.h is used nowadays, remove obsolete checks. * configure.ac (AC_CHECK_HEADERS): Remove lastlog.h, utmp.h, and utmpx.h. * modules/pam_lastlog/pam_lastlog.c: Include unconditionally. --- modules/pam_lastlog/pam_lastlog.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'modules') diff --git a/modules/pam_lastlog/pam_lastlog.c b/modules/pam_lastlog/pam_lastlog.c index 43cc4b7d..2daedb7c 100644 --- a/modules/pam_lastlog/pam_lastlog.c +++ b/modules/pam_lastlog/pam_lastlog.c @@ -13,11 +13,7 @@ #include #include #include -#ifdef HAVE_UTMP_H -# include -#else -# include -#endif +#include #include #include #include -- cgit v1.2.3