File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -136,14 +136,14 @@ const MAX_BUF_LEN: usize = <c_int>::max_value() as usize - 1;
136
136
type IovLen = usize ;
137
137
138
138
#[ cfg( any(
139
+ all( target_os = "linux" , target_env = "musl" ) ,
139
140
target_os = "dragonfly" ,
140
141
target_os = "freebsd" ,
141
- all( target_os = "linux" , target_env = "musl" ) ,
142
- target_vendor = "apple" ,
142
+ target_os = "illumos" ,
143
143
target_os = "netbsd" ,
144
144
target_os = "openbsd" ,
145
145
target_os = "solaris" ,
146
- target_os = "illumos " ,
146
+ target_vendor = "apple " ,
147
147
) ) ]
148
148
type IovLen = c_int ;
149
149
@@ -352,7 +352,6 @@ impl SockAddr {
352
352
}
353
353
}
354
354
355
- // TODO: rename to `Socket` once the struct `Socket` is no longer used.
356
355
pub ( crate ) type Socket = c_int ;
357
356
358
357
pub ( crate ) fn socket ( family : c_int , ty : c_int , protocol : c_int ) -> io:: Result < Socket > {
Original file line number Diff line number Diff line change @@ -157,7 +157,6 @@ fn init() {
157
157
} ) ;
158
158
}
159
159
160
- // TODO: rename to `Socket` once the struct `Socket` is no longer used.
161
160
pub ( crate ) type Socket = sock:: SOCKET ;
162
161
163
162
pub ( crate ) fn socket ( family : c_int , mut ty : c_int , protocol : c_int ) -> io:: Result < Socket > {
You can’t perform that action at this time.
0 commit comments