File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 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) {
118118 sin_family : c:: AF_INET as c:: sa_family_t ,
119119 sin_port : addr. port ( ) . to_be ( ) ,
120120 sin_addr,
121+ #[ cfg( not( target_os = "haiku" ) ) ]
121122 sin_zero : [ 0 ; 8 ] ,
123+ #[ cfg( target_os = "haiku" ) ]
124+ sin_zero : [ 0 ; 24 ] ,
122125 #[ cfg( any(
123126 target_os = "dragonfly" ,
124127 target_os = "freebsd" ,
125128 target_os = "ios" ,
126129 target_os = "macos" ,
127130 target_os = "netbsd" ,
128- target_os = "openbsd"
131+ target_os = "openbsd" ,
132+ target_os = "haiku" ,
129133 ) ) ]
130134 sin_len : 0 ,
131135 } ,
@@ -173,7 +177,8 @@ fn addr2raw_v6(addr: &SocketAddrV6) -> (SocketAddrCRepr, c::socklen_t) {
173177 target_os = "ios" ,
174178 target_os = "macos" ,
175179 target_os = "netbsd" ,
176- target_os = "openbsd"
180+ target_os = "openbsd" ,
181+ target_os = "haiku" ,
177182 ) ) ]
178183 sin6_len : 0 ,
179184 #[ cfg( any( target_os = "solaris" , target_os = "illumos" ) ) ]
You can’t perform that action at this time.
0 commit comments