From 5f17f4a377dc577f2f4b7fb166073535f75afd8a Mon Sep 17 00:00:00 2001 From: Erik De Rijcke Date: Mon, 4 Nov 2024 08:33:47 +0100 Subject: [PATCH] gtk wasm build wip --- sdk/sysrootlibs/jslibraries/library_unixsockfs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/sysrootlibs/jslibraries/library_unixsockfs.js b/sdk/sysrootlibs/jslibraries/library_unixsockfs.js index 9583b3c1..41a1ac4d 100644 --- a/sdk/sysrootlibs/jslibraries/library_unixsockfs.js +++ b/sdk/sysrootlibs/jslibraries/library_unixsockfs.js @@ -556,7 +556,7 @@ } }, __syscall_poll: function(fds, nfds, timeout) { - return Asyncify.handleAsync(async () => { + return (async () => { var nonzero = 0; for (var i = 0; i < nfds; i++) { var pollfd = fds + {{{ C_STRUCTS.pollfd.__size__ }}} * i; @@ -575,7 +575,7 @@ {{{ makeSetValue('pollfd', C_STRUCTS.pollfd.revents, 'mask', 'i16') }}}; } return nonzero; - }) + })() }, }