From 9d3281baacde77e010ed6b90f8837fbec3acc9d3 Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Tue, 7 Mar 2023 14:49:46 -0800 Subject: [PATCH] wasi: add __errno_location This was also missing from wasi's .rs --- src/wasi.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wasi.rs b/src/wasi.rs index 5234805731f8d..1a855e0e0fe77 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; }