From 175f89f4ffdf65a53c0c55e8c3ef6256ac57b29c Mon Sep 17 00:00:00 2001 From: dudemanguy Date: Fri, 22 Sep 2017 12:02:55 -0500 Subject: Add elogind support Resolves SirCmpwn/wlroots#146 --- backend/session/logind.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'backend/session/logind.c') 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 #include #include -#include -#include #include #include #include @@ -15,6 +13,14 @@ #include #include +#ifdef HAS_SYSTEMD + #include + #include +#elif HAS_ELOGIND + #include + #include +#endif + enum { DRM_MAJOR = 226 }; const struct session_impl session_logind; -- cgit v1.2.3