Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

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

Jonathan Gilbertfa9260c76392
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;