• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git a/src/memory/device_memory.rs b/src/memory/device_memory.rs
2index 7f6bc8ff..be1eed9f 100644
3--- a/src/memory/device_memory.rs
4+++ b/src/memory/device_memory.rs
5@@ -19,7 +19,7 @@ use crate::OomError;
6 use crate::VulkanObject;
7 use std::error;
8 use std::fmt;
9-#[cfg(target_os = "linux")]
10+#[cfg(any(target_os = "android", target_os = "linux"))]
11 use std::fs::File;
12 use std::marker::PhantomData;
13 use std::mem::MaybeUninit;
14@@ -27,7 +27,7 @@ use std::ops::Deref;
15 use std::ops::DerefMut;
16 use std::ops::Range;
17 use std::os::raw::c_void;
18-#[cfg(target_os = "linux")]
19+#[cfg(any(target_os = "android", target_os = "linux"))]
20 use std::os::unix::io::{FromRawFd, IntoRawFd};
21 use std::ptr;
22 use std::sync::Arc;
23@@ -178,7 +178,7 @@ impl<'a> DeviceMemoryBuilder<'a> {
24     /// # Panic
25     ///
26     /// - Panics if the import info has already been set.
27-    #[cfg(target_os = "linux")]
28+    #[cfg(any(target_os = "android", target_os = "linux"))]
29     pub fn import_info(
30         mut self,
31         fd: File,
32@@ -572,7 +572,7 @@ impl DeviceMemory {
33     ///
34     /// - Panics if the user requests an invalid handle type for this device memory object.
35     #[inline]
36-    #[cfg(target_os = "linux")]
37+    #[cfg(any(target_os = "android", target_os = "linux"))]
38     pub fn export_fd(
39         &self,
40         handle_type: ExternalMemoryHandleType,
41