Add support for elogind

A session manager similar to logind from systemd.
See https://github.com/elogind/elogind

Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
Sven Eden
2017-05-30 16:33:28 +02:00
committed by Craig Small
parent a395137acd
commit 776b0791ba
3 changed files with 21 additions and 1 deletions

View File

@@ -40,6 +40,9 @@
#ifdef WITH_SYSTEMD
#include <systemd/sd-login.h>
#endif
#ifdef WITH_ELOGIND
#include <elogind/sd-login.h>
#endif
// sometimes it's easier to do this manually, w/o gcc helping
#ifdef PROF
@@ -518,7 +521,7 @@ static void ns2proc(const char *directory, proc_t *restrict p) {
}
static void sd2proc(proc_t *restrict p) {
#ifdef WITH_SYSTEMD
#if defined(WITH_SYSTEMD) || defined(WITH_ELOGIND)
char buf[64];
uid_t uid;