aboutsummaryrefslogtreecommitdiff
path: root/libseat/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-11-26 21:17:51 +0000
committerKenny Levinsen <kl@kl.wtf>2021-11-28 15:40:56 +0100
commitd92fa01f884e94262e4c7184be62efaf8a00a634 (patch)
tree73692d7c197519a341501f80bd19e65ddb7ea286 /libseat/backend
parent69cf5c36e05c64597063dd8c4d83d3e036547451 (diff)
build: use list for logind dep
This reduces the boilerplate a bit. Use logind.name() instead of having a separate source of truth. Requires adapting the checks a bit because the dep name has a "lib" prefix.
Diffstat (limited to 'libseat/backend')
-rw-r--r--libseat/backend/logind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libseat/backend/logind.c b/libseat/backend/logind.c
index 5a10c75..bfb02cf 100644
--- a/libseat/backend/logind.c
+++ b/libseat/backend/logind.c
@@ -13,10 +13,10 @@
#include <sys/un.h>
#include <unistd.h>
-#if defined(HAVE_ELOGIND)
+#if defined(HAVE_LIBELOGIND)
#include <elogind/sd-bus.h>
#include <elogind/sd-login.h>
-#elif defined(HAVE_SYSTEMD)
+#elif defined(HAVE_LIBSYSTEMD)
#include <systemd/sd-bus.h>
#include <systemd/sd-login.h>
#else