Skip to content

Commit

Permalink
fix: dnssd_sock_t may not available on apple
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticLampyrid committed Jul 3, 2024
1 parent 4451359 commit f3885db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zeroconf/src/bonjour/service_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use crate::{bonjour::bonjour_util, Result};
use bonjour_sys::{
dnssd_sock_t, DNSServiceBrowse, DNSServiceBrowseReply, DNSServiceFlags, DNSServiceGetAddrInfo,
DNSServiceBrowse, DNSServiceBrowseReply, DNSServiceFlags, DNSServiceGetAddrInfo,
DNSServiceGetAddrInfoReply, DNSServiceProcessResult, DNSServiceProtocol, DNSServiceRef,
DNSServiceRefDeallocate, DNSServiceRefSockFD, DNSServiceRegister, DNSServiceRegisterReply,
DNSServiceResolve, DNSServiceResolveReply,
Expand Down Expand Up @@ -186,7 +186,7 @@ impl ManagedDNSServiceRef {
///
/// [`DNSServiceRefSockFD`]: https://developer.apple.com/documentation/dnssd/1804698-dnsservicerefsockfd?language=objc
#[cfg(target_vendor = "pc")]
pub fn sock_fd(&self) -> dnssd_sock_t {
pub fn sock_fd(&self) -> bonjour_sys::dnssd_sock_t {
unsafe { DNSServiceRefSockFD(self.0) }
}
}
Expand Down

0 comments on commit f3885db

Please sign in to comment.