mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-22 19:24:08 +00:00
QUINN: include ios in the conditional compilation for mac platforms
This commit is contained in:
committed by
Dirkjan Ochtman
parent
585b8807c1
commit
605c9a57ef
@@ -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() };
|
||||
|
||||
Reference in New Issue
Block a user