1
1
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:
Jonathan LEI 2022-11-02 11:53:55 +00:00 committed by Wez Furlong
parent 8dfc5e81a9
commit 4df6d2a477

View File

@ -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;