mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 07:12:44 +00:00
Add NetBSD support to uucore. (#5289)
* Add NetBSD support to uucore. Fixes https://github.com/uutils/coreutils/issues/5288
This commit is contained in:
parent
aeb3b14736
commit
23ee9b622d
1 changed files with 11 additions and 2 deletions
|
@ -114,6 +114,7 @@ impl FileInformation {
|
|||
not(target_vendor = "apple"),
|
||||
not(target_os = "android"),
|
||||
not(target_os = "freebsd"),
|
||||
not(target_os = "netbsd"),
|
||||
not(target_arch = "aarch64"),
|
||||
not(target_arch = "riscv64"),
|
||||
target_pointer_width = "64"
|
||||
|
@ -125,6 +126,7 @@ impl FileInformation {
|
|||
target_vendor = "apple",
|
||||
target_os = "android",
|
||||
target_os = "freebsd",
|
||||
target_os = "netbsd",
|
||||
target_arch = "aarch64",
|
||||
target_arch = "riscv64",
|
||||
not(target_pointer_width = "64")
|
||||
|
@ -137,9 +139,16 @@ impl FileInformation {
|
|||
|
||||
#[cfg(unix)]
|
||||
pub fn inode(&self) -> u64 {
|
||||
#[cfg(all(not(target_os = "freebsd"), target_pointer_width = "64"))]
|
||||
#[cfg(all(
|
||||
not(any(target_os = "freebsd", target_os = "netbsd")),
|
||||
target_pointer_width = "64"
|
||||
))]
|
||||
return self.0.st_ino;
|
||||
#[cfg(any(target_os = "freebsd", not(target_pointer_width = "64")))]
|
||||
#[cfg(any(
|
||||
target_os = "freebsd",
|
||||
target_os = "netbsd",
|
||||
not(target_pointer_width = "64")
|
||||
))]
|
||||
return self.0.st_ino.into();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue