Fix compilation error when autostart feature is enabled without systemd

This commit is contained in:
r0chd 2026-09-09 00:22:01 +02:00 • committed by Jeremy Soller
parent 2e0ee1b796
commit 81dd888ec9

View file

@ -24,8 +24,9 @@ use std::path::PathBuf;
#[cfg(feature = "autostart")]
use std::process::{Command, Stdio};
use std::sync::Arc;
use systemd::is_systemd_used;
#[cfg(feature = "systemd")]
use systemd::{get_systemd_env, is_systemd_used, spawn_scope};
use systemd::{get_systemd_env, spawn_scope};
use tokio::signal::unix::{SignalKind, signal};
use tokio::sync::mpsc::{Receiver, Sender};
use tokio::sync::{Mutex, oneshot};