Skip to content

Commit

Permalink
wasi: add __errno_location
Browse files Browse the repository at this point in the history
This was also missing from wasi's .rs
  • Loading branch information
connor4312 committed Mar 7, 2023
1 parent 3363d43 commit 9d3281b
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 9d3281b

Please sign in to comment.