diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-09-22 13:26:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-22 13:26:02 -0400 |
commit | dc26f6a8f8f84fd1e2787a33b9e073432afb4ad0 (patch) | |
tree | 54500805872d3f79c29b05f4f185d4dfad219fa8 /backend/session | |
parent | e5e6dab7fdbbcc5ce62a40a14b138b4e59a148d9 (diff) | |
parent | 881d5a851cce96176ab4a4df2626d972fcde8db7 (diff) |
Merge pull request #154 from Dudemanguy911/master
Add elogind support
Diffstat (limited to 'backend/session')
-rw-r--r-- | backend/session/logind.c | 10 | ||||
-rw-r--r-- | backend/session/session.c | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/backend/session/logind.c b/backend/session/logind.c index 3b237360..42b48e94 100644 --- a/backend/session/logind.c +++ b/backend/session/logind.c @@ -5,8 +5,6 @@ #include <stdlib.h> #include <string.h> #include <errno.h> -#include <systemd/sd-bus.h> -#include <systemd/sd-login.h> #include <unistd.h> #include <sys/sysmacros.h> #include <sys/stat.h> @@ -15,6 +13,14 @@ #include <wlr/backend/session/interface.h> #include <wlr/util/log.h> +#ifdef HAS_SYSTEMD + #include <systemd/sd-bus.h> + #include <systemd/sd-login.h> +#elif HAS_ELOGIND + #include <elogind/sd-bus.h> + #include <elogind/sd-login.h> +#endif + enum { DRM_MAJOR = 226 }; const struct session_impl session_logind; diff --git a/backend/session/session.c b/backend/session/session.c index c9bc1397..cfa617f6 100644 --- a/backend/session/session.c +++ b/backend/session/session.c @@ -18,6 +18,8 @@ extern const struct session_impl session_direct; static const struct session_impl *impls[] = { #ifdef HAS_SYSTEMD &session_logind, +#elif HAS_ELOGIND + &session_logind, #endif &session_direct, NULL, |