mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
Merge pull request #4299 from Joining7943/fix-4298-build-fails-on-s390x-and-risc64
`uucore`: Fix #4298: Fails to build on s390x (and riscv64)
This commit is contained in:
commit
dce8a021da
2 changed files with 6 additions and 0 deletions
|
@ -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")
|
||||
)
|
||||
))]
|
||||
|
|
|
@ -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")
|
||||
)
|
||||
))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue