1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

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 FreeBSD
Gmail Gmail
GNU GNU
Illumos
Irix Irix
MS-DOS MS-DOS
MSDOS MSDOS

View file

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

View file

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