mirror of
https://github.com/wez/wezterm.git
synced 2024-12-25 22:33:52 +03:00
fix: temp fix for Android build error
This commit is contained in:
parent
8dfc5e81a9
commit
4df6d2a477
@ -255,7 +255,7 @@ impl KittyImageData {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
#[cfg(all(unix, not(target_os = "android")))]
|
||||
fn read_shared_memory_data(
|
||||
name: &str,
|
||||
data_offset: Option<u32>,
|
||||
@ -301,6 +301,15 @@ fn read_shared_memory_data(
|
||||
Ok(data)
|
||||
}
|
||||
|
||||
#[cfg(all(unix, target_os = "android"))]
|
||||
fn read_shared_memory_data(
|
||||
_name: &str,
|
||||
_data_offset: Option<u32>,
|
||||
_data_size: Option<u32>,
|
||||
) -> std::result::Result<std::vec::Vec<u8>, std::io::Error> {
|
||||
Err(std::io::ErrorKind::Unsupported.into())
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
mod win {
|
||||
use winapi::um::handleapi::CloseHandle;
|
||||
|
Loading…
Reference in New Issue
Block a user