diff --git a/Cargo.toml b/Cargo.toml index afc519285..dbc790d7f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ appveyor = { repository = "alexcrichton/tokio-core" } [dependencies] bytes = "0.4" log = "0.3" -mio = "0.6.9" +mio = "0.6.10" scoped-tls = "0.1.0" slab = "0.3" iovec = "0.1" diff --git a/src/net/tcp.rs b/src/net/tcp.rs index e24fc47bd..ee65f06b6 100644 --- a/src/net/tcp.rs +++ b/src/net/tcp.rs @@ -706,7 +706,7 @@ impl Future for TcpStreamNewState { } } -#[cfg(unix)] +#[cfg(all(unix, not(target_os = "fuchsia")))] mod sys { use std::os::unix::prelude::*; use super::{TcpStream, TcpListener}; diff --git a/src/net/udp/mod.rs b/src/net/udp/mod.rs index 9befb33fc..9bbbfda8b 100644 --- a/src/net/udp/mod.rs +++ b/src/net/udp/mod.rs @@ -415,7 +415,7 @@ impl Future for RecvDgram } } -#[cfg(unix)] +#[cfg(all(unix, not(target_os = "fuchsia")))] mod sys { use std::os::unix::prelude::*; use super::UdpSocket; diff --git a/src/reactor/mod.rs b/src/reactor/mod.rs index 3e92b3b76..1caa95763 100644 --- a/src/reactor/mod.rs +++ b/src/reactor/mod.rs @@ -820,7 +820,7 @@ fn usize2ready(bits: usize) -> mio::Ready { ready | platform::usize2ready(bits) } -#[cfg(unix)] +#[cfg(all(unix, not(target_os = "fuchsia")))] mod platform { use mio::Ready; use mio::unix::UnixReady; @@ -871,7 +871,7 @@ mod platform { } } -#[cfg(windows)] +#[cfg(any(windows, target_os = "fuchsia"))] mod platform { use mio::Ready;