about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorMarco A L Barbosa <malbarbo@gmail.com>2017-02-10 16:28:42 -0200
committerMarco A L Barbosa <malbarbo@gmail.com>2017-02-10 16:34:10 -0200
commita8364acafb9bd7dff2aff6ca2007cbfd5463260c (patch)
tree7c04e2a92b8847d21eab89128276ad598067c49a /src/librustc_data_structures
parentbc524d3d559e7b514edec6e99feb149995db7f1d (diff)
downloadrust-a8364acafb9bd7dff2aff6ca2007cbfd5463260c.tar.gz
rust-a8364acafb9bd7dff2aff6ca2007cbfd5463260c.zip
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.
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/flock.rs2
1 files changed, 1 insertions, 1 deletions
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;