diff --git a/README.md b/README.md index bd3164b5a..f3d9da087 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ Currently supported platforms: * NetBSD * OpenBSD * Solaris -* Windows (running under Wine is not supported, see [issue #1444]) +* Windows * iOS * macOS @@ -153,6 +153,13 @@ This uses the Windows AFD system to access socket readiness events. [wepoll]: https://github.com/piscisaureus/wepoll [issue #1444]: https://github.com/tokio-rs/mio/issues/1444 +### Unsupported + +* Haiku, see [issue #1472] +* Wine, see [issue #1444] + +[issue #1472]: https://github.com/tokio-rs/mio/issues/1472 + ## Community A group of Mio users hang out on [Discord], this can be a good place to go for diff --git a/src/sys/unix/tcp.rs b/src/sys/unix/tcp.rs index 73b3b30a0..8a8bcb606 100644 --- a/src/sys/unix/tcp.rs +++ b/src/sys/unix/tcp.rs @@ -9,7 +9,7 @@ use std::time::Duration; use crate::net::TcpKeepalive; use crate::sys::unix::net::{new_socket, socket_addr, to_socket_addr}; -#[cfg(any(target_os = "openbsd", target_os = "netbsd", target_os = "haiku"))] +#[cfg(any(target_os = "openbsd", target_os = "netbsd"))] use libc::SO_KEEPALIVE as KEEPALIVE_TIME; #[cfg(any(target_os = "macos", target_os = "ios"))] use libc::TCP_KEEPALIVE as KEEPALIVE_TIME; @@ -18,7 +18,6 @@ use libc::TCP_KEEPALIVE as KEEPALIVE_TIME; target_os = "ios", target_os = "openbsd", target_os = "netbsd", - target_os = "haiku" )))] use libc::TCP_KEEPIDLE as KEEPALIVE_TIME; pub type TcpSocket = libc::c_int;