Skip to content

Commit 4d0e84b

Browse files
committed
Use the WASI layout for fd_set.
1 parent edd541e commit 4d0e84b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wasi.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ s! {
138138
}
139139

140140
pub struct fd_set {
141-
fds_bits: [c_ulong; FD_SETSIZE / ULONG_SIZE],
141+
pub __nfds: size_t,
142+
pub __fds: [c_int; FD_SETSIZE],
142143
}
143144

144145
pub struct lconv {

0 commit comments

Comments
 (0)