diff --git a/proxmox-rest-server/src/daemon.rs b/proxmox-rest-server/src/daemon.rs index 45d18ad0..d5ed86b1 100644 --- a/proxmox-rest-server/src/daemon.rs +++ b/proxmox-rest-server/src/daemon.rs @@ -18,11 +18,6 @@ use proxmox::tools::fd::Fd; use pbs_tools::fd::fd_change_cloexec; -#[link(name = "systemd")] -extern "C" { - fn sd_journal_stream_fd(identifier: *const c_uchar, priority: c_int, level_prefix: c_int) -> c_int; -} - // Unfortunately FnBox is nightly-only and Box is unusable, so just use Box... type BoxedStoreFunc = Box Result + UnwindSafe + Send>; @@ -315,6 +310,7 @@ where #[link(name = "systemd")] extern "C" { + fn sd_journal_stream_fd(identifier: *const c_uchar, priority: c_int, level_prefix: c_int) -> c_int; fn sd_notify(unset_environment: c_int, state: *const c_char) -> c_int; fn sd_notify_barrier(unset_environment: c_int, timeout: u64) -> c_int; }