QUINN: include ios in the conditional compilation for mac platforms

This commit is contained in:
Lionel Faber
2020-02-19 18:21:36 +05:30
committed by Dirkjan Ochtman
parent 585b8807c1
commit 605c9a57ef
+2 -2
View File
@@ -71,7 +71,7 @@ impl super::UdpExt for UdpSocket {
Ok(())
}
#[cfg(not(target_os = "macos"))]
#[cfg(not(any(target_os = "macos", target_os = "ios")))]
fn send_ext(&self, transmits: &[Transmit]) -> io::Result<usize> {
use crate::udp::BATCH_SIZE;
let mut msgs: [libc::mmsghdr; BATCH_SIZE] = unsafe { mem::zeroed() };
@@ -105,7 +105,7 @@ impl super::UdpExt for UdpSocket {
}
}
#[cfg(target_os = "macos")]
#[cfg(any(target_os = "macos", target_os = "ios"))]
fn send_ext(&self, transmits: &[Transmit]) -> io::Result<usize> {
let mut hdr: libc::msghdr = unsafe { mem::zeroed() };
let mut iov: libc::iovec = unsafe { mem::zeroed() };