aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--configure.ac3
-rw-r--r--modules/pam_lastlog/pam_lastlog.c6
2 files changed, 1 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index d7d440e7..7565f024 100644
--- a/configure.ac
+++ b/configure.ac
@@ -650,9 +650,6 @@ dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_SYS_WAIT
-dnl For module/pam_lastlog
-AC_CHECK_HEADERS(lastlog.h utmp.h utmpx.h)
-
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_BIGENDIAN
AC_C_CONST
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>