diff options
author | Xavier L'Heureux <xavier.lheureux@icloud.com> | 2019-07-12 16:27:24 -0400 |
---|---|---|
committer | Xavier L'Heureux <dev.xlheureux@gmail.com> | 2020-05-17 21:05:45 -0400 |
commit | 0259f9d51718b90118bbd1d792c88781d0aa98f7 (patch) | |
tree | c8d067b61393cb1628890790def3c6691c70bab6 /src/sys/statvfs.rs | |
parent | d3fef370b843e0ffd6fc6df6e80d9bbe0d024863 (diff) | |
download | nix-0259f9d51718b90118bbd1d792c88781d0aa98f7.zip |
Add Redox support for most of the modules
Some things are not implemented yet in redox, so a lot of annotations
were added to remove functions when compiling for redox. Those functions
will hopefully be added in time, but for now it's better to have partial
support than none.
Blocked by https://github.com/rust-lang/libc/pull/1438
Diffstat (limited to 'src/sys/statvfs.rs')
-rw-r--r-- | src/sys/statvfs.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sys/statvfs.rs b/src/sys/statvfs.rs index 26147803..8e8d367c 100644 --- a/src/sys/statvfs.rs +++ b/src/sys/statvfs.rs @@ -10,6 +10,7 @@ use libc::{self, c_ulong}; use {Result, NixPath}; use errno::Errno; +#[cfg(not(target_os = "redox"))] libc_bitflags!( /// File system mount Flags #[repr(C)] @@ -108,6 +109,7 @@ impl Statvfs { } /// Get the mount flags + #[cfg(not(target_os = "redox"))] pub fn flags(&self) -> FsFlags { FsFlags::from_bits_truncate(self.0.f_flag) } |