File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ use windows_sys::Win32::System::Threading::INFINITE;
31
31
use crate :: { RecvFlags , SockAddr , TcpKeepalive , Type } ;
32
32
33
33
#[ allow( non_camel_case_types) ]
34
- pub ( crate ) type c_int = i32 ;
34
+ pub ( crate ) type c_int = std :: os :: raw :: c_int ;
35
35
36
36
/// Fake MSG_TRUNC flag for the [`RecvFlags`] struct.
37
37
///
@@ -61,9 +61,9 @@ pub(crate) use windows_sys::Win32::Networking::WinSock::{
61
61
SOCKADDR_STORAGE as sockaddr_storage,
62
62
} ;
63
63
#[ allow( non_camel_case_types) ]
64
- pub ( crate ) type sa_family_t = u16 ;
64
+ pub ( crate ) type sa_family_t = windows_sys :: Win32 :: Networking :: WinSock :: sa_family_t ;
65
65
#[ allow( non_camel_case_types) ]
66
- pub ( crate ) type socklen_t = i32 ;
66
+ pub ( crate ) type socklen_t = windows_sys :: Win32 :: Networking :: WinSock :: socklen_t ;
67
67
// Used in `Socket`.
68
68
#[ cfg( feature = "all" ) ]
69
69
pub ( crate ) use windows_sys:: Win32 :: Networking :: WinSock :: IP_HDRINCL ;
@@ -110,7 +110,7 @@ impl_debug!(
110
110
self :: AF_INET ,
111
111
self :: AF_INET6 ,
112
112
self :: AF_UNIX ,
113
- self :: AF_UNSPEC , // = 0.
113
+ self :: AF_UNSPEC ,
114
114
) ;
115
115
116
116
/// Windows only API.
You can’t perform that action at this time.
0 commit comments