diff options
author | Haibo Huang <hhb@google.com> | 2021-01-05 21:36:04 -0800 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2021-01-05 21:36:04 -0800 |
commit | 0cb7a8f3130da47c8cd0ff5c6a035aa1f2b9e676 (patch) | |
tree | a101b157e865fd1669dc9e122b0adddb7ce94978 /src/sys/shell/tcp.rs | |
parent | 0fae4327dd02e0c99bff26c94ccacadb2ba83716 (diff) | |
download | mio-0cb7a8f3130da47c8cd0ff5c6a035aa1f2b9e676.tar.gz |
Upgrade rust/crates/mio to 0.7.7platform-tools-31.0.0
Test: make
Change-Id: Ie71fb1d573d92b099ad5a5b84fc1b92303aaa849
Diffstat (limited to 'src/sys/shell/tcp.rs')
-rw-r--r-- | src/sys/shell/tcp.rs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/sys/shell/tcp.rs b/src/sys/shell/tcp.rs index 2017bda..0ed225f 100644 --- a/src/sys/shell/tcp.rs +++ b/src/sys/shell/tcp.rs @@ -1,7 +1,7 @@ +use crate::net::TcpKeepalive; use std::io; use std::net::{self, SocketAddr}; use std::time::Duration; -use crate::net::TcpKeepalive; pub(crate) type TcpSocket = i32; @@ -79,24 +79,18 @@ pub(crate) fn get_keepalive(_: TcpSocket) -> io::Result<bool> { os_required!(); } -#[cfg(any( - target_os = "linux", - target_os = "macos", - target_os = "ios", - target_os = "freebsd", - target_os = "netbsd", - target_os = "windows", -))] pub(crate) fn set_keepalive_params(_: TcpSocket, _: TcpKeepalive) -> io::Result<()> { os_required!() } #[cfg(any( + target_os = "android", target_os = "linux", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "netbsd", + target_os = "solaris", ))] pub(crate) fn get_keepalive_time(_: TcpSocket) -> io::Result<Option<Duration>> { os_required!() |