diff options
author | Dan Gohman <sunfish@mozilla.com> | 2019-04-24 05:40:34 -0700 |
---|---|---|
committer | Dan Gohman <sunfish@mozilla.com> | 2019-04-24 05:40:34 -0700 |
commit | 4d0e84b8beefc01724111ffcf8ae12ca2b1b6937 (patch) | |
tree | f98682ff2544517b4a6f6423e7d252b15470b0f7 /src | |
parent | edd541e67f6fb8ff09b0092777dc7a75fd2cb254 (diff) | |
download | rust-libc-4d0e84b8beefc01724111ffcf8ae12ca2b1b6937.tar.gz |
Use the WASI layout for fd_set.
Diffstat (limited to 'src')
-rw-r--r-- | src/wasi.rs | 3 |
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 { |