Skip to content

Commit 14e99cf

Browse files
MortronMeymoThomasdezeeuw
authored andcommitted
Fix cfg target checks for TcpKeepalive
This brings the checks on the setters of TcpKeepalive in line with the actual support in sys::set_tcp_keepalive().
1 parent acde0da commit 14e99cf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/lib.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,11 @@ impl TcpKeepalive {
427427
#[cfg(all(
428428
feature = "all",
429429
any(
430+
target_os = "android",
430431
target_os = "dragonfly",
431432
target_os = "freebsd",
432433
target_os = "fuchsia",
434+
target_os = "illumos",
433435
target_os = "linux",
434436
target_os = "netbsd",
435437
target_vendor = "apple",
@@ -441,8 +443,11 @@ impl TcpKeepalive {
441443
doc(cfg(all(
442444
feature = "all",
443445
any(
446+
target_os = "android",
447+
target_os = "dragonfly",
444448
target_os = "freebsd",
445449
target_os = "fuchsia",
450+
target_os = "illumos",
446451
target_os = "linux",
447452
target_os = "netbsd",
448453
target_vendor = "apple",
@@ -465,9 +470,11 @@ impl TcpKeepalive {
465470
feature = "all",
466471
any(
467472
doc,
473+
target_os = "android",
468474
target_os = "dragonfly",
469475
target_os = "freebsd",
470476
target_os = "fuchsia",
477+
target_os = "illumos",
471478
target_os = "linux",
472479
target_os = "netbsd",
473480
target_vendor = "apple",
@@ -478,8 +485,11 @@ impl TcpKeepalive {
478485
doc(cfg(all(
479486
feature = "all",
480487
any(
488+
target_os = "android",
489+
target_os = "dragonfly",
481490
target_os = "freebsd",
482491
target_os = "fuchsia",
492+
target_os = "illumos",
483493
target_os = "linux",
484494
target_os = "netbsd",
485495
target_vendor = "apple",

0 commit comments

Comments
 (0)