aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_timestamp/pam_timestamp.c
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2024-11-20 13:16:44 -0600
committerDmitry V. Levin <ldv@strace.io>2024-11-26 16:00:00 +0000
commite46b77e7739a2c5b8f72a7ea6fb77a7a6acc187d (patch)
tree35cdf6758104342f3c1808e7a8bdcb0b3dd0cd12 /modules/pam_timestamp/pam_timestamp.c
parent45576121e28e5880ba5b4ab2921fab52bc552787 (diff)
downloadpam-e46b77e7739a2c5b8f72a7ea6fb77a7a6acc187d.tar.gz
pam-e46b77e7739a2c5b8f72a7ea6fb77a7a6acc187d.tar.bz2
pam-e46b77e7739a2c5b8f72a7ea6fb77a7a6acc187d.zip
meson: support elogind as a logind provider
The systemd functionality used here is also supported by elogind. Introduce elogind meson option that could be used to enable logind support in pam_issue, pam_limits, and pam_timestamp via elogind. When elogind support is enabled, search for libelogind as well and use the appropriate headers.
Diffstat (limited to 'modules/pam_timestamp/pam_timestamp.c')
-rw-r--r--modules/pam_timestamp/pam_timestamp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/pam_timestamp/pam_timestamp.c b/modules/pam_timestamp/pam_timestamp.c
index 51fcd592..c207e5d1 100644
--- a/modules/pam_timestamp/pam_timestamp.c
+++ b/modules/pam_timestamp/pam_timestamp.c
@@ -61,8 +61,10 @@
#include "hmacsha1.h"
#endif /* WITH_OPENSSL */
-#ifdef USE_LOGIND
+#ifdef USE_LIBSYSTEMD
#include <systemd/sd-login.h>
+#elif defined(USE_LIBELOGIND)
+#include <elogind/sd-login.h>
#else
#include <utmp.h>
#endif