diff --git a/src/backend/session/mod.rs b/src/backend/session/mod.rs index 231081d..8047cf2 100644 --- a/src/backend/session/mod.rs +++ b/src/backend/session/mod.rs @@ -160,6 +160,9 @@ impl AsErrno for () { } pub mod auto; -mod dbus; pub mod direct; + +#[cfg(feature="backend_session_logind")] +mod dbus; +#[cfg(feature="backend_session_logind")] pub use self::dbus::*;