Skip to content

Commit 525de68

Browse files
mhdawsontargos
authored andcommitted
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 0c4a84e commit 525de68

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

deps/uvwasi/uvwasi.gyp

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
'src/fd_table.c',
1414
'src/path_resolver.c',
1515
'src/poll_oneoff.c',
16+
'src/sync_helpers.c',
1617
'src/uv_mapping.c',
1718
'src/uvwasi.c',
1819
'src/wasi_rights.c',
@@ -36,4 +37,4 @@
3637
],
3738
}
3839
]
39-
}
40+
}

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)