Skip to content

Commit

Permalink
Unbreak Solaris build after quinn-rs#1993
Browse files Browse the repository at this point in the history
  • Loading branch information
psumbera committed Nov 5, 2024
1 parent e7ae563 commit 79453bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion quinn-udp/src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,12 @@ fn recv(io: SockRef<'_>, bufs: &mut [IoSliceMut<'_>], meta: &mut [RecvMeta]) ->
Ok(msg_count as usize)
}

#[cfg(any(target_os = "openbsd", target_os = "netbsd", apple_slow))]
#[cfg(any(
target_os = "openbsd",
target_os = "netbsd",
target_os = "solaris",
apple_slow
))]
fn recv(io: SockRef<'_>, bufs: &mut [IoSliceMut<'_>], meta: &mut [RecvMeta]) -> io::Result<usize> {
let mut name = MaybeUninit::<libc::sockaddr_storage>::uninit();
let mut ctrl = cmsg::Aligned(MaybeUninit::<[u8; CMSG_LEN]>::uninit());
Expand Down

0 comments on commit 79453bc

Please sign in to comment.