From 4d0e84b8beefc01724111ffcf8ae12ca2b1b6937 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 24 Apr 2019 05:40:34 -0700 Subject: [PATCH] Use the WASI layout for fd_set. --- src/wasi.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wasi.rs b/src/wasi.rs index 429bc53f..bd2cbfa1 100644 --- a/src/wasi.rs +++ b/src/wasi.rs @@ -138,7 +138,8 @@ s! { } pub struct fd_set { - fds_bits: [c_ulong; FD_SETSIZE / ULONG_SIZE], + pub __nfds: size_t, + pub __fds: [c_int; FD_SETSIZE], } pub struct lconv {