@@ -68,14 +68,14 @@ pub(crate) type socklen_t = i32;
68
68
#[ cfg( feature = "all" ) ]
69
69
pub ( crate ) use windows_sys:: Win32 :: Networking :: WinSock :: IP_HDRINCL ;
70
70
pub ( crate ) use windows_sys:: Win32 :: Networking :: WinSock :: {
71
- linger , IPPROTO_IPV6 , IPV6_ADD_MEMBERSHIP , IPV6_DROP_MEMBERSHIP , IPV6_MREQ as Ipv6Mreq ,
71
+ IPPROTO_IPV6 , IPV6_ADD_MEMBERSHIP , IPV6_DROP_MEMBERSHIP , IPV6_MREQ as Ipv6Mreq ,
72
72
IPV6_MULTICAST_HOPS , IPV6_MULTICAST_IF , IPV6_MULTICAST_LOOP , IPV6_RECVTCLASS ,
73
73
IPV6_UNICAST_HOPS , IPV6_V6ONLY , IP_ADD_MEMBERSHIP , IP_ADD_SOURCE_MEMBERSHIP ,
74
74
IP_DROP_MEMBERSHIP , IP_DROP_SOURCE_MEMBERSHIP , IP_MREQ as IpMreq ,
75
75
IP_MREQ_SOURCE as IpMreqSource , IP_MULTICAST_IF , IP_MULTICAST_LOOP , IP_MULTICAST_TTL ,
76
- IP_RECVTOS , IP_TOS , IP_TTL , MSG_OOB , MSG_PEEK , SO_BROADCAST , SO_ERROR , SO_KEEPALIVE , SO_LINGER ,
77
- SO_OOBINLINE , SO_RCVBUF , SO_RCVTIMEO , SO_REUSEADDR , SO_SNDBUF , SO_SNDTIMEO , SO_TYPE ,
78
- TCP_NODELAY ,
76
+ IP_RECVTOS , IP_TOS , IP_TTL , LINGER as linger , MSG_OOB , MSG_PEEK , SO_BROADCAST , SO_ERROR ,
77
+ SO_KEEPALIVE , SO_LINGER , SO_OOBINLINE , SO_RCVBUF , SO_RCVTIMEO , SO_REUSEADDR , SO_SNDBUF ,
78
+ SO_SNDTIMEO , SO_TYPE , TCP_NODELAY ,
79
79
} ;
80
80
pub ( crate ) const IPPROTO_IP : c_int = windows_sys:: Win32 :: Networking :: WinSock :: IPPROTO_IP as c_int ;
81
81
pub ( crate ) const SOL_SOCKET : c_int = windows_sys:: Win32 :: Networking :: WinSock :: SOL_SOCKET as c_int ;
@@ -781,7 +781,7 @@ pub(crate) fn unix_sockaddr(path: &Path) -> io::Result<SockAddr> {
781
781
// SAFETY: a `sockaddr_storage` of all zeros is valid.
782
782
let mut storage = unsafe { mem:: zeroed :: < sockaddr_storage > ( ) } ;
783
783
let len = {
784
- let storage: & mut windows_sys:: Win32 :: Networking :: WinSock :: sockaddr_un =
784
+ let storage: & mut windows_sys:: Win32 :: Networking :: WinSock :: SOCKADDR_UN =
785
785
unsafe { & mut * ( & mut storage as * mut sockaddr_storage ) . cast ( ) } ;
786
786
787
787
// Windows expects a UTF-8 path here even though Windows paths are
0 commit comments