summaryrefslogtreecommitdiff
path: root/src/wasi.rs
diff options
context:
space:
mode:
authorDan Gohman <sunfish@mozilla.com>2019-04-24 05:40:34 -0700
committerDan Gohman <sunfish@mozilla.com>2019-04-24 05:40:34 -0700
commit4d0e84b8beefc01724111ffcf8ae12ca2b1b6937 (patch)
treef98682ff2544517b4a6f6423e7d252b15470b0f7 /src/wasi.rs
parentedd541e67f6fb8ff09b0092777dc7a75fd2cb254 (diff)
downloadrust-libc-4d0e84b8beefc01724111ffcf8ae12ca2b1b6937.tar.gz
Use the WASI layout for fd_set.
Diffstat (limited to 'src/wasi.rs')
-rw-r--r--src/wasi.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wasi.rs b/src/wasi.rs
index 429bc53f57..bd2cbfa1d8 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 {