fsext solaris/illumos build fix

This commit is contained in:
David Carlier 2022-03-21 21:39:16 +00:00 committed by David CARLIER
parent 5eeac5881a
commit d8102503bf
3 changed files with 10 additions and 3 deletions

View file

@ -48,6 +48,7 @@ EditorConfig
FreeBSD
Gmail
GNU
Illumos
Irix
MS-DOS
MSDOS

View file

@ -40,6 +40,8 @@ TARGETS = [
"x86_64-linux-android",
# Solaris
"x86_64-sun-solaris",
# Illumos
"x86_64-unknown-illumos",
# WASM
"wasm32-wasi",
# Redox

View file

@ -90,6 +90,8 @@ pub use libc::statfs as StatFs;
target_os = "netbsd",
target_os = "bitrig",
target_os = "dragonfly",
target_os = "illumos",
target_os = "solaris",
target_os = "redox"
))]
pub use libc::statvfs as StatFs;
@ -100,13 +102,15 @@ pub use libc::statvfs as StatFs;
target_os = "android",
target_os = "freebsd",
target_os = "openbsd",
target_os = "redox"
))]
pub use libc::statfs as statfs_fn;
#[cfg(any(
target_os = "netbsd",
target_os = "bitrig",
target_os = "dragonfly",
target_os = "redox"
target_os = "illumos",
target_os = "solaris",
target_os = "dragonfly"
))]
pub use libc::statvfs as statfs_fn;
@ -476,7 +480,7 @@ pub fn read_fs_list() -> Vec<MountInfo> {
}
mounts
}
#[cfg(target_os = "redox")]
#[cfg(any(target_os = "redox", target_os = "illumos", target_os = "solaris"))]
{
// No method to read mounts, yet
Vec::new()