diff -ur a/src/login/logind-core.c b/src/login/logind-core.c --- a/src/login/logind-core.c 2026-08-31 07:50:25.392025568 +0100 +++ b/src/login/logind-core.c 2026-08-31 07:50:17.616025410 +0100 @@ -372,7 +372,7 @@ } int manager_get_session_by_pidref(Manager *m, const PidRef *pid, Session **ret) { -#if LIBSYSTEMD_COMPATIBLE_CGROUPS /// elogind does not support systemd units, but its own session system +#if 0 /// elogind does not support systemd units, but its own session system _cleanup_free_ char *unit = NULL; #else // LIBSYSTEMD_COMPATIBLE_CGROUPS _cleanup_free_ char *session_name = NULL; @@ -392,7 +392,7 @@ if (r < 0) return r; } else { -#ifdef LIBSYSTEMD_COMPATIBLE_CGROUPS /// elogind does not support systemd units, but its own session system +#if 0 /// elogind does not support systemd units, but its own session system r = cg_pidref_get_unit(pid, &unit); if (r >= 0) s = hashmap_get(m->session_units, unit); diff -ur a/src/login/logind.h b/src/login/logind.h --- a/src/login/logind.h 2026-08-31 07:50:25.392025568 +0100 +++ b/src/login/logind.h 2026-08-31 07:50:17.616025410 +0100 @@ -97,7 +97,7 @@ uint64_t session_counter; uint64_t inhibit_counter; -#ifdef LIBSYSTEMD_COMPATIBLE_CGROUPS /// elogind does not support session units +#if 0 /// elogind does not support session units Hashmap *session_units; #endif // LIBSYSTEMD_COMPATIBLE_CGROUPS Hashmap *user_units;