Skip to content

Commit d23b6d9

Browse files
committed
QUINN: include ios in the conditional compilation for mac platforms
1 parent 585b880 commit d23b6d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quinn/src/platform/unix.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl super::UdpExt for UdpSocket {
7171
Ok(())
7272
}
7373

74-
#[cfg(not(target_os = "macos"))]
74+
#[cfg(not(any(target_os = "macos", target_os = "ios")))]
7575
fn send_ext(&self, transmits: &[Transmit]) -> io::Result<usize> {
7676
use crate::udp::BATCH_SIZE;
7777
let mut msgs: [libc::mmsghdr; BATCH_SIZE] = unsafe { mem::zeroed() };
@@ -105,7 +105,7 @@ impl super::UdpExt for UdpSocket {
105105
}
106106
}
107107

108-
#[cfg(target_os = "macos")]
108+
#[cfg(any(target_os = "macos", target_os = "ios"))]
109109
fn send_ext(&self, transmits: &[Transmit]) -> io::Result<usize> {
110110
let mut hdr: libc::msghdr = unsafe { mem::zeroed() };
111111
let mut iov: libc::iovec = unsafe { mem::zeroed() };

0 commit comments

Comments
 (0)