Add option to use elogind

Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
This commit is contained in:
Stephan Lachnit
2020-04-25 00:08:31 +02:00
committed by afayaz-feral
parent 1e8312f7e3
commit 953792b4a5
4 changed files with 23 additions and 4 deletions

View File

@@ -36,8 +36,13 @@ POSSIBILITY OF SUCH DAMAGE.
#include "common-logging.h"
#include "common-pidfds.h"
#ifdef USE_ELOGIND
#include <elogind/sd-bus.h>
#include <elogind/sd-daemon.h>
#else
#include <systemd/sd-bus.h>
#include <systemd/sd-daemon.h>
#endif
#include <assert.h>
#include <errno.h>

View File

@@ -17,6 +17,7 @@ gamemoded_includes += config_h_dir
gamemoded = executable(
'gamemoded',
sources: daemon_sources,
c_args: elogind_args,
dependencies: [
link_daemon_common,
dep_threads,