Skip to content

Commit 7d3be9b

Browse files
committed
haiku: uses SO_KEEPALIVE.
1 parent eb96add commit 7d3be9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/unix/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ cfg_if! {
5252
cfg_if! {
5353
if #[cfg(any(target_os = "macos", target_os = "ios"))] {
5454
use libc::TCP_KEEPALIVE as KEEPALIVE_OPTION;
55-
} else if #[cfg(any(target_os = "openbsd", target_os = "netbsd"))] {
55+
} else if #[cfg(any(target_os = "openbsd", target_os = "netbsd", target_os = "haiku"))] {
5656
use libc::SO_KEEPALIVE as KEEPALIVE_OPTION;
5757
} else {
5858
use libc::TCP_KEEPIDLE as KEEPALIVE_OPTION;

0 commit comments

Comments
 (0)