Skip to content

Commit

Permalink
haiku: uses SO_KEEPALIVE.
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicah committed Sep 2, 2017
1 parent eb96add commit 7d3be9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ cfg_if! {
cfg_if! {
if #[cfg(any(target_os = "macos", target_os = "ios"))] {
use libc::TCP_KEEPALIVE as KEEPALIVE_OPTION;
} else if #[cfg(any(target_os = "openbsd", target_os = "netbsd"))] {
} else if #[cfg(any(target_os = "openbsd", target_os = "netbsd", target_os = "haiku"))] {
use libc::SO_KEEPALIVE as KEEPALIVE_OPTION;
} else {
use libc::TCP_KEEPIDLE as KEEPALIVE_OPTION;
Expand Down

0 comments on commit 7d3be9b

Please sign in to comment.