mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-27 00:00:12 +02:00
[fuchsia] Config changes to build on Fuchsia
This patch disables various Unix-specific platform features that are not enabled on Fuchsia. It also updates the mio version to 0.6.10, which is the first release that supports Fuchsia.
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user