From 2b9026526e7094ccaebf0c571336b58034eb1304 Mon Sep 17 00:00:00 2001 From: fufesou Date: Wed, 7 Jun 2023 20:42:07 +0800 Subject: [PATCH] fix build Signed-off-by: fufesou --- src/server.rs | 4 ++-- src/server/input_service.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server.rs b/src/server.rs index de8fd2e7f..e9bb890d1 100644 --- a/src/server.rs +++ b/src/server.rs @@ -8,6 +8,8 @@ use std::{ use bytes::Bytes; pub use connection::*; +#[cfg(not(any(target_os = "android", target_os = "ios")))] +use hbb_common::config::Config2; use hbb_common::tcp::{self, new_listener}; use hbb_common::{ allow_err, @@ -23,8 +25,6 @@ use hbb_common::{ timeout, tokio, ResultType, Stream, }; #[cfg(not(any(target_os = "android", target_os = "ios")))] -use hbb_common::{anyhow::anyhow, config::Config2}; -#[cfg(not(any(target_os = "android", target_os = "ios")))] use service::ServiceTmpl; use service::{GenericService, Service, Subscriber}; diff --git a/src/server/input_service.rs b/src/server/input_service.rs index 2c6cf1726..9a8d0bd75 100644 --- a/src/server/input_service.rs +++ b/src/server/input_service.rs @@ -17,6 +17,7 @@ use std::{ thread, time::{self, Duration, Instant}, }; +#[cfg(windows)] use winapi::um::winuser::WHEEL_DELTA; const INVALID_CURSOR_POS: i32 = i32::MIN;