Skip to content

Commit

Permalink
make statfs/statvfs to be available wherever they are available
Browse files Browse the repository at this point in the history
libc reads sys/statvfs.h on all OS except Windows which nix doesn't care
about.

Closes: #831
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
  • Loading branch information
ignatenkobrain committed Jan 8, 2018
1 parent abd72be commit 2074ef6
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/sys/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,9 @@ pub mod select;
#[cfg(target_os = "linux")]
pub mod quota;


#[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 pthread;

0 comments on commit 2074ef6

Please sign in to comment.