Skip to content

Commit d37b0d2

Browse files
committedSep 29, 2023
wasi: updates required for latest uvwasi version
Signed-off-by: Michael Dawson <[email protected]> PR-URL: #49908 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 3227d73 commit d37b0d2

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
 

‎deps/uvwasi/uvwasi.gyp

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
'src/fd_table.c',
66
'src/path_resolver.c',
77
'src/poll_oneoff.c',
8+
'src/sync_helpers.c',
89
'src/uv_mapping.c',
910
'src/uvwasi.c',
1011
'src/wasi_rights.c',

‎test/wasi/c/sock.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ int main(void) {
99
int fd = 0 ;
1010
socklen_t addrlen = 0;
1111
int flags = 0;
12-
int ret = accept(0, NULL, &addrlen);
12+
int ret = accept(10, NULL, &addrlen);
1313
assert(ret == -1);
14-
assert(errno == ENOTSUP);
14+
assert(errno == EBADF);
1515

1616
return 0;
1717
}

‎test/wasi/wasm/sock.wasm

27 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.