Skip to content

Commit 74eeb2d

Browse files
committed
Fix fallback build of poll
1 parent 43bd3a0 commit 74eeb2d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

crates/guest-rust/rt/src/async_support/waitable_set.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ unsafe fn join(_: u32, _: u32) {
8686
unsafe fn wait(_: u32, _: *mut [u32; 2]) -> u32 {
8787
unreachable!();
8888
}
89+
#[cfg(not(target_arch = "wasm32"))]
90+
unsafe fn poll(_: u32, _: *mut [u32; 3]) -> u32 {
91+
unreachable!();
92+
}
8993

9094
#[cfg(target_arch = "wasm32")]
9195
#[link(wasm_import_module = "$root")]

0 commit comments

Comments
 (0)