Skip to content

Commit 49d8fd3

Browse files
committed
Fix complication on Android
With the net feature enabled, but with os-poll disabled.
1 parent 44129e4 commit 49d8fd3

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/sys/shell/tcp.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
use crate::net::TcpKeepalive;
12
use std::io;
23
use std::net::{self, SocketAddr};
34
use std::time::Duration;
4-
use crate::net::TcpKeepalive;
55

66
pub(crate) type TcpSocket = i32;
77

@@ -79,19 +79,12 @@ pub(crate) fn get_keepalive(_: TcpSocket) -> io::Result<bool> {
7979
os_required!();
8080
}
8181

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-
))]
9082
pub(crate) fn set_keepalive_params(_: TcpSocket, _: TcpKeepalive) -> io::Result<()> {
9183
os_required!()
9284
}
9385

9486
#[cfg(any(
87+
target_os = "android",
9588
target_os = "linux",
9689
target_os = "macos",
9790
target_os = "ios",

0 commit comments

Comments
 (0)