Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
delta4chat authored and djc committed Nov 13, 2024
1 parent 66546dd commit bb4df4d
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 @@ -445,7 +445,12 @@ fn send(state: &UdpSocketState, io: SockRef<'_>, transmit: &Transmit<'_>) -> io:
Ok(())
}

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

0 comments on commit bb4df4d

Please sign in to comment.