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

uucore: Fix #4298: Build on s390x and riscv64 architectures fails

This commit is contained in:
Joining7943 2023-01-23 21:13:59 +01:00
parent 3977ef608e
commit 9796e70a28
2 changed files with 6 additions and 0 deletions

View file

@ -115,6 +115,7 @@ impl FileInformation {
not(target_os = "android"),
not(target_os = "freebsd"),
not(target_arch = "aarch64"),
not(target_arch = "riscv64"),
target_pointer_width = "64"
))]
return self.0.st_nlink;
@ -125,6 +126,7 @@ impl FileInformation {
target_os = "android",
target_os = "freebsd",
target_arch = "aarch64",
target_arch = "riscv64",
not(target_pointer_width = "64")
)
))]

View file

@ -619,6 +619,7 @@ impl FsMeta for StatFs {
not(target_vendor = "apple"),
not(target_os = "android"),
not(target_os = "freebsd"),
not(target_arch = "s390x"),
target_pointer_width = "64"
))]
return self.f_bsize;
@ -626,6 +627,7 @@ impl FsMeta for StatFs {
not(target_env = "musl"),
not(target_os = "freebsd"),
any(
target_arch = "s390x",
target_vendor = "apple",
target_os = "android",
not(target_pointer_width = "64")
@ -681,6 +683,7 @@ impl FsMeta for StatFs {
not(target_vendor = "apple"),
not(target_os = "android"),
not(target_os = "freebsd"),
not(target_arch = "s390x"),
target_pointer_width = "64"
))]
return self.f_type;
@ -690,6 +693,7 @@ impl FsMeta for StatFs {
target_vendor = "apple",
target_os = "android",
target_os = "freebsd",
target_arch = "s390x",
not(target_pointer_width = "64")
)
))]