From bb4df4d35c84281ba25b7d5ac0e6e5f35279d94c Mon Sep 17 00:00:00 2001 From: Delta 4 <156182500+delta4chat@users.noreply.github.com> Date: Tue, 12 Nov 2024 19:02:13 +0800 Subject: [PATCH] fixes https://github.com/quinn-rs/quinn/issues/2033 --- quinn-udp/src/unix.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/quinn-udp/src/unix.rs b/quinn-udp/src/unix.rs index 252e6f719..b8ff6e592 100644 --- a/quinn-udp/src/unix.rs +++ b/quinn-udp/src/unix.rs @@ -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 { let mut names = [MaybeUninit::::uninit(); BATCH_SIZE]; let mut ctrls = [cmsg::Aligned(MaybeUninit::<[u8; CMSG_LEN]>::uninit()); BATCH_SIZE];