From 57a09c8ca45e0ec023b7be88745b21fc71649c52 Mon Sep 17 00:00:00 2001 From: Björn Esser Date: Tue, 26 Dec 2017 18:51:27 +0100 Subject: config: Put all defines into config.h --- backend/session/direct-ipc.c | 3 ++- backend/session/logind.c | 5 +++-- backend/session/session.c | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'backend/session') diff --git a/backend/session/direct-ipc.c b/backend/session/direct-ipc.c index 0ea51e2f..52cdbbb9 100644 --- a/backend/session/direct-ipc.c +++ b/backend/session/direct-ipc.c @@ -18,12 +18,13 @@ #include #endif #include +#include "config.h" #include #include "backend/session/direct-ipc.h" enum { DRM_MAJOR = 226 }; -#ifdef HAS_LIBCAP +#ifdef WLR_HAS_LIBCAP #include static bool have_permissions(void) { diff --git a/backend/session/logind.c b/backend/session/logind.c index e9d4c8f3..539490de 100644 --- a/backend/session/logind.c +++ b/backend/session/logind.c @@ -10,13 +10,14 @@ #include #include #include +#include "config.h" #include #include -#ifdef HAS_SYSTEMD +#ifdef WLR_HAS_SYSTEMD #include #include -#elif HAS_ELOGIND +#elif WLR_HAS_ELOGIND #include #include #endif diff --git a/backend/session/session.c b/backend/session/session.c index 0ed54499..725aa1b9 100644 --- a/backend/session/session.c +++ b/backend/session/session.c @@ -9,6 +9,7 @@ #include #include #include +#include "config.h" #include #include #include @@ -17,9 +18,9 @@ extern const struct session_impl session_logind; extern const struct session_impl session_direct; static const struct session_impl *impls[] = { -#ifdef HAS_SYSTEMD +#ifdef WLR_HAS_SYSTEMD &session_logind, -#elif HAS_ELOGIND +#elif WLR_HAS_ELOGIND &session_logind, #endif &session_direct, -- cgit v1.2.3