aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2024-08-08 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2024-08-13 08:00:00 +0000
commit7ff048524c4a3d24d92848916225d0e95a7677f7 (patch)
tree43cb27a5927e06dc6b549219d4fc7c456f1e7116 /modules
parent83c344ee5a5eb4796e435bce897b83cae3465243 (diff)
downloadpam-7ff048524c4a3d24d92848916225d0e95a7677f7.tar.gz
pam-7ff048524c4a3d24d92848916225d0e95a7677f7.tar.bz2
pam-7ff048524c4a3d24d92848916225d0e95a7677f7.zip
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 <utmp.h> unconditionally.
Diffstat (limited to 'modules')
-rw-r--r--modules/pam_lastlog/pam_lastlog.c6
1 files changed, 1 insertions, 5 deletions
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 <fcntl.h>
#include <time.h>
#include <errno.h>
-#ifdef HAVE_UTMP_H
-# include <utmp.h>
-#else
-# include <lastlog.h>
-#endif
+#include <utmp.h>
#include <pwd.h>
#include <stdlib.h>
#include <ctype.h>