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:
parent
5eeac5881a
commit
d8102503bf
3 changed files with 10 additions and 3 deletions
|
@ -48,6 +48,7 @@ EditorConfig
|
||||||
FreeBSD
|
FreeBSD
|
||||||
Gmail
|
Gmail
|
||||||
GNU
|
GNU
|
||||||
|
Illumos
|
||||||
Irix
|
Irix
|
||||||
MS-DOS
|
MS-DOS
|
||||||
MSDOS
|
MSDOS
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue