Skip to content

Commit

Permalink
wasi: updates required for latest uvwasi version
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Dawson <midawson@redhat.com>

PR-URL: #49908
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
mhdawson committed Sep 29, 2023
1 parent 3227d73 commit d37b0d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions deps/uvwasi/uvwasi.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
'src/fd_table.c',
'src/path_resolver.c',
'src/poll_oneoff.c',
'src/sync_helpers.c',
'src/uv_mapping.c',
'src/uvwasi.c',
'src/wasi_rights.c',
Expand Down
4 changes: 2 additions & 2 deletions test/wasi/c/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ int main(void) {
int fd = 0 ;
socklen_t addrlen = 0;
int flags = 0;
int ret = accept(0, NULL, &addrlen);
int ret = accept(10, NULL, &addrlen);
assert(ret == -1);
assert(errno == ENOTSUP);
assert(errno == EBADF);

return 0;
}
Binary file modified test/wasi/wasm/sock.wasm
Binary file not shown.

0 comments on commit d37b0d2

Please sign in to comment.