We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44129e4 commit 49d8fd3Copy full SHA for 49d8fd3
src/sys/shell/tcp.rs
@@ -1,7 +1,7 @@
1
+use crate::net::TcpKeepalive;
2
use std::io;
3
use std::net::{self, SocketAddr};
4
use std::time::Duration;
-use crate::net::TcpKeepalive;
5
6
pub(crate) type TcpSocket = i32;
7
@@ -79,19 +79,12 @@ pub(crate) fn get_keepalive(_: TcpSocket) -> io::Result<bool> {
79
os_required!();
80
}
81
82
-#[cfg(any(
83
- target_os = "linux",
84
- target_os = "macos",
85
- target_os = "ios",
86
- target_os = "freebsd",
87
- target_os = "netbsd",
88
- target_os = "windows",
89
-))]
90
pub(crate) fn set_keepalive_params(_: TcpSocket, _: TcpKeepalive) -> io::Result<()> {
91
os_required!()
92
93
94
#[cfg(any(
+ target_os = "android",
95
target_os = "linux",
96
target_os = "macos",
97
target_os = "ios",
0 commit comments