From 08624d0a5c3649fea6463836690ae9b7f01093ac Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 8 Jan 2018 00:13:59 +0100 Subject: make statfs/statvfs to be available wherever they are available libc reads sys/statvfs.h on all OS except Windows which nix doesn't care about. Closes: https://github.com/nix-rust/nix/issues/831 Signed-off-by: Igor Gnatenko --- src/sys/mod.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/sys/mod.rs') diff --git a/src/sys/mod.rs b/src/sys/mod.rs index 55c3d5d2..972a1b5e 100644 --- a/src/sys/mod.rs +++ b/src/sys/mod.rs @@ -54,19 +54,9 @@ pub mod socket; pub mod stat; -#[cfg(all(target_os = "linux", - any(target_arch = "x86", - target_arch = "x86_64", - target_arch = "arm")), - )] +#[cfg(any(target_os = "android", target_os = "linux", target_os = "macos"))] pub mod statfs; -#[cfg(all(any(target_os = "linux", - target_os = "macos"), - any(target_arch = "x86", - target_arch = "x86_64", - target_arch = "arm")), - )] pub mod statvfs; pub mod termios; -- cgit v1.2.3