fix build linux

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-02-19 12:52:41 +08:00
parent 626fdefb18
commit 8852d97efc
4 changed files with 9 additions and 10 deletions

View File

@@ -2,7 +2,7 @@ use core::slice;
use hbb_common::{
allow_err,
anyhow::anyhow,
bail, log,
bail, libc, log,
message_proto::{KeyEvent, MouseEvent},
protobuf::Message,
tokio::{self, sync::mpsc},
@@ -492,7 +492,7 @@ pub mod client {
let mut option = SHMEM.lock().unwrap();
let shmem = option.as_mut().unwrap();
unsafe {
hbb_common::libc::memset(shmem.as_ptr() as _, 0, shmem.len() as _);
libc::memset(shmem.as_ptr() as _, 0, shmem.len() as _);
}
drop(option);
match para {