Skip to content

Commit 23cc850

Browse files
committed
return 0 from errno function
1 parent 6896ed3 commit 23cc850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/wasi/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub unsafe fn env_lock() -> impl Any {
2121
}
2222

2323
pub fn errno() -> i32 {
24-
panic!("unsupported")
24+
0
2525
}
2626

2727
pub fn error_string(errno: i32) -> String {

0 commit comments

Comments
 (0)