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/statvfs.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sys/statvfs.rs') diff --git a/src/sys/statvfs.rs b/src/sys/statvfs.rs index 41ca44f2..845ae0db 100644 --- a/src/sys/statvfs.rs +++ b/src/sys/statvfs.rs @@ -32,13 +32,13 @@ libc_bitflags!( #[cfg(any(target_os = "android", target_os = "linux"))] ST_MANDLOCK; /// Write on file/directory/symlink - #[cfg(any(target_os = "android", target_os = "linux"))] + #[cfg(target_os = "linux")] ST_WRITE; /// Append-only file - #[cfg(any(target_os = "android", target_os = "linux"))] + #[cfg(target_os = "linux")] ST_APPEND; /// Immutable file - #[cfg(any(target_os = "android", target_os = "linux"))] + #[cfg(target_os = "linux")] ST_IMMUTABLE; /// Do not update access times on files #[cfg(any(target_os = "android", target_os = "linux"))] -- cgit v1.2.3