Skip to content

Commit

Permalink
revert unintended change
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Nov 14, 2023
1 parent 95cebfd commit 4f492fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sys/socket/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1225,10 +1225,12 @@ pub union SockaddrStorage {
#[cfg(any(target_os = "android", target_os = "linux"))]
alg: AlgAddr,
#[cfg(all(feature = "net", not(target_os = "redox")))]
#[cfg_attr(docsrs, doc(cfg(feature = "net")))]
dl: LinkAddr,
#[cfg(any(target_os = "android", target_os = "linux"))]
nl: NetlinkAddr,
#[cfg(all(feature = "ioctl", apple_targets))]
#[cfg_attr(docsrs, doc(cfg(feature = "ioctl")))]
sctl: SysControlAddr,
#[cfg(feature = "net")]
sin: SockaddrIn,
Expand Down Expand Up @@ -1503,6 +1505,7 @@ impl SockaddrStorage {
AddressFamily::Netlink, libc::sockaddr_nl, nl}

#[cfg(all(feature = "ioctl", apple_targets))]
#[cfg_attr(docsrs, doc(cfg(feature = "ioctl")))]
accessors! {as_sys_control_addr, as_sys_control_addr_mut, SysControlAddr,
AddressFamily::System, libc::sockaddr_ctl, sctl}

Expand Down

0 comments on commit 4f492fd

Please sign in to comment.