File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -118,14 +118,18 @@ fn addr2raw_v4(addr: &SocketAddrV4) -> (SocketAddrCRepr, c::socklen_t) {
118
118
sin_family : c:: AF_INET as c:: sa_family_t ,
119
119
sin_port : addr. port ( ) . to_be ( ) ,
120
120
sin_addr,
121
+ #[ cfg( not( target_os = "haiku" ) ) ]
121
122
sin_zero : [ 0 ; 8 ] ,
123
+ #[ cfg( target_os = "haiku" ) ]
124
+ sin_zero : [ 0 ; 24 ] ,
122
125
#[ cfg( any(
123
126
target_os = "dragonfly" ,
124
127
target_os = "freebsd" ,
125
128
target_os = "ios" ,
126
129
target_os = "macos" ,
127
130
target_os = "netbsd" ,
128
- target_os = "openbsd"
131
+ target_os = "openbsd" ,
132
+ target_os = "haiku" ,
129
133
) ) ]
130
134
sin_len : 0 ,
131
135
} ,
@@ -173,7 +177,8 @@ fn addr2raw_v6(addr: &SocketAddrV6) -> (SocketAddrCRepr, c::socklen_t) {
173
177
target_os = "ios" ,
174
178
target_os = "macos" ,
175
179
target_os = "netbsd" ,
176
- target_os = "openbsd"
180
+ target_os = "openbsd" ,
181
+ target_os = "haiku" ,
177
182
) ) ]
178
183
sin6_len : 0 ,
179
184
#[ cfg( any( target_os = "solaris" , target_os = "illumos" ) ) ]
You can’t perform that action at this time.
0 commit comments