From a8364acafb9bd7dff2aff6ca2007cbfd5463260c Mon Sep 17 00:00:00 2001 From: Marco A L Barbosa Date: Fri, 10 Feb 2017 16:28:42 -0200 Subject: [PATCH] Allow rustc data structures compile to android flock structure is defined in asm*/fcntl.h. This file on android is generated from the linux kernel source, so they are the same. --- src/librustc_data_structures/flock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_data_structures/flock.rs b/src/librustc_data_structures/flock.rs index 33d71ba8626..26417e3ba7c 100644 --- a/src/librustc_data_structures/flock.rs +++ b/src/librustc_data_structures/flock.rs @@ -27,7 +27,7 @@ mod imp { use std::io; use libc; - #[cfg(target_os = "linux")] + #[cfg(any(target_os = "linux", target_os = "android"))] mod os { use libc;