mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
Fix compile on OSX
This commit is contained in:
parent
b081e9593f
commit
a3c4aec127
@ -860,14 +860,12 @@ mod platform {
|
|||||||
const ERROR: usize = 1 << 3;
|
const ERROR: usize = 1 << 3;
|
||||||
const AIO: usize = 1 << 4;
|
const AIO: usize = 1 << 4;
|
||||||
|
|
||||||
#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "ios",
|
#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "ios"))]
|
||||||
target_os = "macos"))]
|
|
||||||
fn is_aio(ready: &Ready) -> bool {
|
fn is_aio(ready: &Ready) -> bool {
|
||||||
ready.is_aio()
|
ready.is_aio()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(any(target_os = "dragonfly", target_os = "freebsd", target_os = "ios",
|
#[cfg(not(any(target_os = "dragonfly", target_os = "freebsd", target_os = "ios")))]
|
||||||
target_os = "macos")))]
|
|
||||||
fn is_aio(_ready: &Ready) -> bool {
|
fn is_aio(_ready: &Ready) -> bool {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user