From 105a1f43d744b94f6ed7698a43310a0b036d45b4 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Wed, 18 Oct 2023 09:07:10 -0500 Subject: [PATCH] added: stub `__poll` to JS platform --- core/runtime/platform/js/platform.onyx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/runtime/platform/js/platform.onyx b/core/runtime/platform/js/platform.onyx index 5f4d5604..ebb280f5 100644 --- a/core/runtime/platform/js/platform.onyx +++ b/core/runtime/platform/js/platform.onyx @@ -45,6 +45,12 @@ __futex_wake :: (addr: rawptr, maximum: i32) -> i32 { __atomic_notify(addr, maximum); } +PollDescription :: struct { + fd: i32; + in, out: io.PollEvent; +} +__poll :: (fds: [] PollDescription, timeout := -1) {} + // Sets up everything needed for execution. __start :: () { __runtime_initialize(); -- 2.25.1