Skip to content

Commit 3cfdb3f

Browse files
authored
Merge pull request #7 from jessicah/haiku-support
haiku: uses SO_KEEPALIVE.
2 parents eb96add + 7d3be9b commit 3cfdb3f

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)