Skip to content

Commit 34e9a5e

Browse files
committed
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.
2 parents 89ec881 + 9d3281b commit 34e9a5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wasi.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,4 +825,6 @@ extern "C" {
825825
pub fn arc4random() -> u32;
826826
pub fn arc4random_buf(a: *mut c_void, b: size_t);
827827
pub fn arc4random_uniform(a: u32) -> u32;
828+
829+
pub fn __errno_location() -> *mut ::c_int;
828830
}

0 commit comments

Comments
 (0)