File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1+ Add socket option IP_TOS (nix::sys::socket::sockopt::IpTos) IPV6_TCLASS (nix::sys::socket::sockopt::Ipv6TClass) on Android/FreeBSD
Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ sockopt_impl!(
402402 libc:: SO_PRIORITY ,
403403 libc:: c_int
404404) ;
405- #[ cfg( target_os = "linux" ) ]
405+ #[ cfg( any ( linux_android , target_os = "freebsd" ) ) ]
406406#[ cfg( feature = "net" ) ]
407407sockopt_impl ! (
408408 #[ cfg_attr( docsrs, doc( cfg( feature = "net" ) ) ) ]
@@ -414,7 +414,7 @@ sockopt_impl!(
414414 libc:: IP_TOS ,
415415 libc:: c_int
416416) ;
417- #[ cfg( target_os = "linux" ) ]
417+ #[ cfg( any ( linux_android , target_os = "freebsd" ) ) ]
418418#[ cfg( feature = "net" ) ]
419419sockopt_impl ! (
420420 #[ cfg_attr( docsrs, doc( cfg( feature = "net" ) ) ) ]
Original file line number Diff line number Diff line change @@ -469,7 +469,7 @@ fn test_so_priority() {
469469}
470470
471471#[ test]
472- #[ cfg( target_os = "linux" ) ]
472+ #[ cfg( any ( linux_android , target_os = "freebsd" ) ) ]
473473fn test_ip_tos ( ) {
474474 let fd = socket (
475475 AddressFamily :: Inet ,
@@ -484,7 +484,7 @@ fn test_ip_tos() {
484484}
485485
486486#[ test]
487- #[ cfg( target_os = "linux" ) ]
487+ #[ cfg( any ( linux_android , target_os = "freebsd" ) ) ]
488488// Disable the test under emulation because it fails in Cirrus-CI. Lack
489489// of QEMU support is suspected.
490490#[ cfg_attr( qemu, ignore) ]
You can’t perform that action at this time.
0 commit comments