From fa9260c7639238dbe273b4e0c5af7a1d124e6269 Mon Sep 17 00:00:00 2001 From: Jonathan Gilbert Date: Sun, 2 Nov 2025 07:19:44 -0600 Subject: [PATCH] Made the import of hbb_common::sysinfo::System more precisely conditioned in src/platform/mod.rs. (#13388) --- src/platform/mod.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/platform/mod.rs b/src/platform/mod.rs index 499512b96..34700e614 100644 --- a/src/platform/mod.rs +++ b/src/platform/mod.rs @@ -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;