mirror of
https://github.com/uutils/coreutils
synced 2024-07-21 09:54:42 +00:00
fsext solaris/illumos build fix
This commit is contained in:
parent
5eeac5881a
commit
d8102503bf
|
@ -48,6 +48,7 @@ EditorConfig
|
|||
FreeBSD
|
||||
Gmail
|
||||
GNU
|
||||
Illumos
|
||||
Irix
|
||||
MS-DOS
|
||||
MSDOS
|
||||
|
|
|
@ -40,6 +40,8 @@ TARGETS = [
|
|||
"x86_64-linux-android",
|
||||
# Solaris
|
||||
"x86_64-sun-solaris",
|
||||
# Illumos
|
||||
"x86_64-unknown-illumos",
|
||||
# WASM
|
||||
"wasm32-wasi",
|
||||
# Redox
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue