You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/system/include/wasi/api.h b/system/include/wasi/api.h
index 137fc264d..7a928aa9f 100644
--- a/system/include/wasi/api.h+++ b/system/include/wasi/api.h@@ -126,7 +126,7 @@ typedef uint16_t __wasi_errno_t;
/**
* Resource unavailable, or operation would block.
*/
-#define __WASI_ERRNO_AGAIN ((__wasi_errno_t)6)+#define __WASI_ERRNO_AGAIN 6
/**
* Connection already in progress.
resolves the build error, but not sure if that makes sense.
I don't know if spec mandates that testing #if EAGAIN != EWOULDBLOCK should be safe or not, but that line has not caused issues on any other platform (and Unity builds to a ton of platforms), so I'm wondering if Emscripten can change here? Is the (__wasi_errno_t) cast somehow important?
The text was updated successfully, but these errors were encountered:
This looks like #9996, and overall I am starting to think we should just modify the wasi headers locally in emscripten... what do you think @sbc100@Brion ?
A local change should be an easy fix, but will be a maintenance burden later. I'd recommend seeing if wasi would be ok with changing the #defines in their upstream headers to improve portability.
Updating our codebases to new Wasm backend... Here is a silly issue.
On some platforms, the C errno defines
EAGAIN
andEWOULDBLOCK
can have the same value. Hence, portable code in our codebase doesBut attempting to compile such code with new Emscripten code gives an error
Changing
resolves the build error, but not sure if that makes sense.
I don't know if spec mandates that testing
#if EAGAIN != EWOULDBLOCK
should be safe or not, but that line has not caused issues on any other platform (and Unity builds to a ton of platforms), so I'm wondering if Emscripten can change here? Is the(__wasi_errno_t)
cast somehow important?The text was updated successfully, but these errors were encountered: