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 authored and targos committed Oct 27, 2023
1 parent 0c4a84e commit 525de68
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion deps/uvwasi/uvwasi.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,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 All @@ -36,4 +37,4 @@
],
}
]
}
}
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 525de68

Please sign in to comment.