Skip to content

Commit

Permalink
QUINN: include ios in the conditional compilation for mac platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel-faber authored and djc committed Feb 19, 2020
1 parent 585b880 commit 605c9a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quinn/src/platform/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() };
Expand Down Expand Up @@ -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() };
Expand Down

0 comments on commit 605c9a5

Please sign in to comment.