Skip to content

Commit e5e7c19

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(). (cherry picked from commit 14e99cf)
1 parent 7234537 commit e5e7c19

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
@@ -374,9 +374,11 @@ impl TcpKeepalive {
374374
#[cfg(all(
375375
feature = "all",
376376
any(
377+
target_os = "android",
377378
target_os = "dragonfly",
378379
target_os = "freebsd",
379380
target_os = "fuchsia",
381+
target_os = "illumos",
380382
target_os = "linux",
381383
target_os = "netbsd",
382384
target_vendor = "apple",
@@ -388,8 +390,11 @@ impl TcpKeepalive {
388390
doc(cfg(all(
389391
feature = "all",
390392
any(
393+
target_os = "android",
394+
target_os = "dragonfly",
391395
target_os = "freebsd",
392396
target_os = "fuchsia",
397+
target_os = "illumos",
393398
target_os = "linux",
394399
target_os = "netbsd",
395400
target_vendor = "apple",
@@ -412,9 +417,11 @@ impl TcpKeepalive {
412417
feature = "all",
413418
any(
414419
doc,
420+
target_os = "android",
415421
target_os = "dragonfly",
416422
target_os = "freebsd",
417423
target_os = "fuchsia",
424+
target_os = "illumos",
418425
target_os = "linux",
419426
target_os = "netbsd",
420427
target_vendor = "apple",
@@ -425,8 +432,11 @@ impl TcpKeepalive {
425432
doc(cfg(all(
426433
feature = "all",
427434
any(
435+
target_os = "android",
436+
target_os = "dragonfly",
428437
target_os = "freebsd",
429438
target_os = "fuchsia",
439+
target_os = "illumos",
430440
target_os = "linux",
431441
target_os = "netbsd",
432442
target_vendor = "apple",

0 commit comments

Comments
 (0)