Made the import of hbb_common::sysinfo::System more precisely conditioned in src/platform/mod.rs. (#13388)

This commit is contained in:
Jonathan Gilbert
2025-11-02 07:19:44 -06:00
committed by GitHub
parent fab11c8ffa
commit fa9260c763

View File

@@ -29,9 +29,15 @@ pub mod gtk_sudo;
#[cfg(not(any(target_os = "android", target_os = "ios")))]
use hbb_common::{
message_proto::CursorData,
sysinfo::{Pid, System},
sysinfo::Pid,
ResultType,
};
#[cfg(all(
not(all(target_os = "windows", not(target_pointer_width = "64"))),
not(any(target_os = "android", target_os = "ios"))))]
use hbb_common::{
sysinfo::System,
};
use std::sync::{Arc, Mutex};
#[cfg(not(any(target_os = "macos", target_os = "android", target_os = "ios")))]
pub const SERVICE_INTERVAL: u64 = 300;