fix: temp fix for Android build error

This commit is contained in:
Jonathan LEI authored and Wez Furlong committed 2022-11-02 08:08:35 -07:00
1 parent 8dfc5e81a9
commit 4df6d2a477
1 file changed
+10 -1
+10 -1
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;