Skip to content

Commit

Permalink
Fix complication on Android
Browse files Browse the repository at this point in the history
With the net feature enabled, but with os-poll disabled.
  • Loading branch information
Thomasdezeeuw committed Dec 30, 2020
1 parent 44129e4 commit 49d8fd3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/sys/shell/tcp.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -79,19 +79,12 @@ 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",
Expand Down

0 comments on commit 49d8fd3

Please sign in to comment.