diff --git a/src/address_family.rs b/src/address_family.rs index cd034f6..e1a1638 100644 --- a/src/address_family.rs +++ b/src/address_family.rs @@ -34,8 +34,7 @@ pub trait AddressFamily { socket.set_reuse_address(true)?; socket.set_nonblocking(true)?; - #[cfg(not(windows))] - #[cfg(not(target_os = "illumos"))] + #[cfg(all(unix, not(any(target_os = "solaris", target_os = "illumos"))))] socket.set_reuse_port(true)?; socket.bind(&addr)?;