diff --git a/src/ext.rs b/src/ext.rs index ca64bef..b50a9df 100644 --- a/src/ext.rs +++ b/src/ext.rs @@ -668,7 +668,7 @@ impl AsSock for T { cfg_if! { if #[cfg(any(target_os = "macos", target_os = "ios"))] { use libc::TCP_KEEPALIVE as KEEPALIVE_OPTION; - } else if #[cfg(any(target_os = "haiku", target_os = "netbsd", target_os = "openbsd"))] { + } else if #[cfg(any(target_os = "haiku", target_os = "openbsd"))] { use libc::SO_KEEPALIVE as KEEPALIVE_OPTION; } else if #[cfg(unix)] { use libc::TCP_KEEPIDLE as KEEPALIVE_OPTION;