From 8a86c844616223a293634e057eec3e9630ea2d15 Mon Sep 17 00:00:00 2001 From: Alex Lyon Date: Wed, 1 May 2019 17:51:59 -0700 Subject: [PATCH] uucore: allow the Linux zero-copy setup on Android --- src/uucore/zero_copy/platform/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/uucore/zero_copy/platform/mod.rs b/src/uucore/zero_copy/platform/mod.rs index 313d2d6f2..039b94b00 100644 --- a/src/uucore/zero_copy/platform/mod.rs +++ b/src/uucore/zero_copy/platform/mod.rs @@ -1,21 +1,21 @@ #[cfg(unix)] pub use self::unix::*; -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "linux", target_os = "android"))] pub use self::linux::*; #[cfg(windows)] pub use self::windows::*; // Add any operating systems we support here -#[cfg(not(any(target_os = "linux")))] +#[cfg(not(any(target_os = "linux", target_os = "android")))] pub use self::default::*; #[cfg(unix)] mod unix; -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "linux", target_os = "android"))] mod linux; #[cfg(windows)] mod windows; // Add any operating systems we support here -#[cfg(not(any(target_os = "linux")))] +#[cfg(not(any(target_os = "linux", target_os = "android")))] mod default;