From 605c9a57efd89055118232fbb9eee3728e68ffbb Mon Sep 17 00:00:00 2001 From: Lionel Faber Date: Wed, 19 Feb 2020 18:21:36 +0530 Subject: [PATCH] QUINN: include ios in the conditional compilation for mac platforms --- quinn/src/platform/unix.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quinn/src/platform/unix.rs b/quinn/src/platform/unix.rs index dae7fc1c7..1e4245e04 100644 --- a/quinn/src/platform/unix.rs +++ b/quinn/src/platform/unix.rs @@ -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 { 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 { let mut hdr: libc::msghdr = unsafe { mem::zeroed() }; let mut iov: libc::iovec = unsafe { mem::zeroed() };