File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1346,9 +1346,12 @@ impl<'a> ControlMessage<'a> {
1346
1346
#[ cfg( any( freebsdlike, netbsdlike) ) ]
1347
1347
#[ cfg( feature = "net" ) ]
1348
1348
ControlMessage :: Ipv4SendSrcAddr ( addr) => addr as * const _ as * const u8 ,
1349
- #[ cfg( any( linux_android, target_os = "freebsd" ) ) ]
1349
+ #[ cfg( linux_android) ]
1350
+ #[ cfg( feature = "net" ) ]
1351
+ ControlMessage :: Ipv4Ttl ( ttl) => ttl as * const i32 as * const u8 ,
1352
+ #[ cfg( target_os = "freebsd" ) ]
1350
1353
#[ cfg( feature = "net" ) ]
1351
- ControlMessage :: Ipv4Ttl ( ttl) => ttl as * const _ as * const u8 ,
1354
+ ControlMessage :: Ipv4Ttl ( ttl) => ttl as * const u8 ,
1352
1355
#[ cfg( any( linux_android, freebsdlike, apple_targets, target_os = "haiku" ) ) ]
1353
1356
#[ cfg( feature = "net" ) ]
1354
1357
ControlMessage :: Ipv6HopLimit ( limit) => limit as * const _ as * const u8 ,
You can’t perform that action at this time.
0 commit comments