diff options
| author | Corey Richardson <corey@octayn.net> | 2014-08-14 15:49:26 -0400 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2014-08-20 21:02:24 -0400 |
| commit | cf5d28083dc25ae9a395b7e55e98af9c621574dc (patch) | |
| tree | 80d4722b567eea10449c921dfb9d0d3a1d83261b /src/libnative | |
| parent | 2dc2ac1e6b382b8c658071f61c3f95ae444dcc16 (diff) | |
| download | rust-cf5d28083dc25ae9a395b7e55e98af9c621574dc.tar.gz rust-cf5d28083dc25ae9a395b7e55e98af9c621574dc.zip | |
libgreen: use FFI-safe types
Diffstat (limited to 'src/libnative')
| -rw-r--r-- | src/libnative/io/c_unix.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libnative/io/c_unix.rs b/src/libnative/io/c_unix.rs index d22ce25c778..fa7da1de914 100644 --- a/src/libnative/io/c_unix.rs +++ b/src/libnative/io/c_unix.rs @@ -107,13 +107,14 @@ mod select { #[cfg(target_os = "linux")] mod select { use std::uint; + use libc; pub static FD_SETSIZE: uint = 1024; #[repr(C)] pub struct fd_set { // FIXME: shouldn't this be a c_ulong? - fds_bits: [uint, ..(FD_SETSIZE / uint::BITS)] + fds_bits: [libc::uintptr_t, ..(FD_SETSIZE / uint::BITS)] } pub fn fd_set(set: &mut fd_set, fd: i32) { |
