about summary refs log tree commit diff
path: root/library/std
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-27 01:29:50 +0000
committerbors <bors@rust-lang.org>2023-04-27 01:29:50 +0000
commite3ccd4b9a51ded19bf1c3f6c647c96b6dd52eced (patch)
tree718d4eee09435a90d9010844d46e1f350715f1c5 /library/std
parentcb9aa8c9c19236f09667dc0bddbe6daee638696c (diff)
parente7ed5ba773661805020cb864a5bd6fc1714130ba (diff)
downloadrust-e3ccd4b9a51ded19bf1c3f6c647c96b6dd52eced.tar.gz
rust-e3ccd4b9a51ded19bf1c3f6c647c96b6dd52eced.zip
Auto merge of #110562 - ComputerDruid:riscv, r=tmandry
Add definitions for riscv64gc-unknown-fuchsia

To compile, also requires a libc update with https://github.com/rust-lang/libc/pull/3204
Diffstat (limited to 'library/std')
-rw-r--r--library/std/Cargo.toml2
-rw-r--r--library/std/src/os/fuchsia/raw.rs6
2 files changed, 7 insertions, 1 deletions
diff --git a/library/std/Cargo.toml b/library/std/Cargo.toml
index f2fda64a1ee..72a5b477330 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};
+}