summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-08 14:10:42 +0000
committerbors <bors@rust-lang.org>2023-03-08 14:10:42 +0000
commit34e9a5e37856ba122791ce6d5f04cec9c7c24f2b (patch)
treead39b3290b8ab21e8ac4fc78c777bcdca8c24dcb
parent89ec88197af91a1a59d0666e474edaed3a6b4aca (diff)
parent9d3281baacde77e010ed6b90f8837fbec3acc9d3 (diff)
downloadrust-libc-34e9a5e37856ba122791ce6d5f04cec9c7c24f2b.tar.gz
Auto merge of #3143 - connor4312:add-errno, r=JohnTitor
wasi: add __errno_location This was also missing from wasi's .rs. It seems to work as on other targets with wasm32-wasi on nightly.
-rw-r--r--src/wasi.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wasi.rs b/src/wasi.rs
index 5234805731..1a855e0e0f 100644
--- a/src/wasi.rs
+++ b/src/wasi.rs
@@ -825,4 +825,6 @@ extern "C" {
pub fn arc4random() -> u32;
pub fn arc4random_buf(a: *mut c_void, b: size_t);
pub fn arc4random_uniform(a: u32) -> u32;
+
+ pub fn __errno_location() -> *mut ::c_int;
}