mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +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:
+1
-1
@@ -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};
|
||||
|
||||
+1
-1
@@ -415,7 +415,7 @@ impl<T> Future for RecvDgram<T>
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
#[cfg(all(unix, not(target_os = "fuchsia")))]
|
||||
mod sys {
|
||||
use std::os::unix::prelude::*;
|
||||
use super::UdpSocket;
|
||||
|
||||
Reference in New Issue
Block a user