mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
wasi: updates required for latest uvwasi version
Signed-off-by: Michael Dawson <midawson@redhat.com> PR-URL: https://github.com/nodejs/node/pull/49908 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
3227d7327c
commit
d37b0d267f
3 changed files with 3 additions and 2 deletions
1
deps/uvwasi/uvwasi.gyp
vendored
1
deps/uvwasi/uvwasi.gyp
vendored
|
@ -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',
|
||||
|
|
|
@ -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 not shown.
Loading…
Add table
Add a link
Reference in a new issue