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.
This commit is contained in:
parent
bc524d3d55
commit
a8364acafb
@ -27,7 +27,7 @@ mod imp {
|
|||||||
use std::io;
|
use std::io;
|
||||||
use libc;
|
use libc;
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||||
mod os {
|
mod os {
|
||||||
use libc;
|
use libc;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user