Skip to content

Commit

Permalink
Add unsupported section to readme
Browse files Browse the repository at this point in the history
And add Haiku and Wine to it.
Thomasdezeeuw committed Mar 12, 2021
1 parent 07c41a9 commit b6090a7
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions src/sys/unix/tcp.rs
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit b6090a7

Please sign in to comment.