diff --git a/src/tcp.rs b/src/tcp.rs index f7884c0..b248a23 100644 --- a/src/tcp.rs +++ b/src/tcp.rs @@ -19,6 +19,7 @@ fn configure_socket(socket: &mut TcpSocket, so_mark: &Option) -> Result<(), ) })?; + #[cfg(target_os = "linux")] if let Some(so_mark) = so_mark { unsafe { let optval: libc::c_int = *so_mark;