diff options
author | Dan Johnson <computerdruid@google.com> | 2023-04-19 14:10:11 -0700 |
---|---|---|
committer | Dan Johnson <computerdruid@google.com> | 2023-04-25 16:42:59 -0700 |
commit | e7ed5ba773661805020cb864a5bd6fc1714130ba (patch) | |
tree | d7530a22485029406274e7d0be7a75d76ae985bb /library | |
parent | 276fa294809e914b1d04192392d256814aa5ce1a (diff) | |
download | rust-e7ed5ba773661805020cb864a5bd6fc1714130ba.tar.gz |
Add definitions for riscv64gc-unknown-fuchsia
Diffstat (limited to 'library')
-rw-r--r-- | library/core/src/ffi/mod.rs | 5 | ||||
-rw-r--r-- | library/std/Cargo.toml | 2 | ||||
-rw-r--r-- | library/std/src/os/fuchsia/raw.rs | 6 |
3 files changed, 11 insertions, 2 deletions
diff --git a/library/core/src/ffi/mod.rs b/library/core/src/ffi/mod.rs index c4f554c8c6b..146e8d3d22a 100644 --- a/library/core/src/ffi/mod.rs +++ b/library/core/src/ffi/mod.rs @@ -143,7 +143,10 @@ mod c_char_definition { target_arch = "powerpc" ) ), - all(target_os = "fuchsia", target_arch = "aarch64"), + all( + target_os = "fuchsia", + any(target_arch = "aarch64", target_arch = "riscv64") + ), all(target_os = "nto", target_arch = "aarch64"), target_os = "horizon" ))] { diff --git a/library/std/Cargo.toml b/library/std/Cargo.toml index 96c75f97f6e..d5c90c1c4a6 100644 --- a/library/std/Cargo.toml +++ b/library/std/Cargo.toml @@ -15,7 +15,7 @@ cfg-if = { version = "1.0", features = ['rustc-dep-of-std'] } panic_unwind = { path = "../panic_unwind", optional = true } panic_abort = { path = "../panic_abort" } core = { path = "../core" } -libc = { version = "0.2.140", default-features = false, features = ['rustc-dep-of-std'] } +libc = { version = "0.2.142", default-features = false, features = ['rustc-dep-of-std'] } compiler_builtins = { version = "0.1.91" } profiler_builtins = { path = "../profiler_builtins", optional = true } unwind = { path = "../unwind" } diff --git a/library/std/src/os/fuchsia/raw.rs b/library/std/src/os/fuchsia/raw.rs index ea6b94f2f13..cb570beb8a1 100644 --- a/library/std/src/os/fuchsia/raw.rs +++ b/library/std/src/os/fuchsia/raw.rs @@ -286,3 +286,9 @@ mod arch { pub __unused: [c_long; 3], } } + +#[cfg(target_arch = "riscv64")] +mod arch { + #[stable(feature = "raw_ext", since = "1.1.0")] + pub use libc::{blkcnt_t, blksize_t, ino_t, nlink_t, off_t, stat, time_t}; +} |