Skip to content

Commit

Permalink
Auto merge of #3143 - connor4312:add-errno, r=JohnTitor
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Mar 8, 2023
2 parents 89ec881 + 9d3281b commit 34e9a5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wasi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 34e9a5e

Please sign in to comment.