mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-06 20:41:28 +03:00
remove some errors on mac
This commit is contained in:
@@ -4,7 +4,10 @@ use std::{
|
||||
path::PathBuf,
|
||||
};
|
||||
|
||||
#[cfg(windows)]
|
||||
const BIN_DATA: &[u8] = include_bytes!("../data.bin");
|
||||
#[cfg(not(windows))]
|
||||
const BIN_DATA: &[u8] = &[];
|
||||
// 4bytes
|
||||
const LENGTH: usize = 4;
|
||||
const IDENTIFIER_LENGTH: usize = 8;
|
||||
@@ -118,7 +121,7 @@ impl BinaryReader {
|
||||
(parsed, executable)
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
#[cfg(linux)]
|
||||
pub fn configure_permission(&self, prefix: &PathBuf) {
|
||||
use std::os::unix::prelude::PermissionsExt;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user