File tree 5 files changed +210
-22
lines changed
5 files changed +210
-22
lines changed Original file line number Diff line number Diff line change @@ -477,6 +477,8 @@ impl TcpKeepalive {
477
477
target_os = "linux" ,
478
478
target_os = "macos" ,
479
479
target_os = "netbsd" ,
480
+ target_os = "tvos" ,
481
+ target_os = "watchos" ,
480
482
target_os = "windows" ,
481
483
) ) ]
482
484
#[ cfg_attr(
@@ -491,6 +493,8 @@ impl TcpKeepalive {
491
493
target_os = "linux" ,
492
494
target_os = "macos" ,
493
495
target_os = "netbsd" ,
496
+ target_os = "tvos" ,
497
+ target_os = "watchos" ,
494
498
target_os = "windows" ,
495
499
) ) )
496
500
) ]
@@ -517,6 +521,8 @@ impl TcpKeepalive {
517
521
target_os = "linux" ,
518
522
target_os = "macos" ,
519
523
target_os = "netbsd" ,
524
+ target_os = "tvos" ,
525
+ target_os = "watchos" ,
520
526
)
521
527
) ) ]
522
528
#[ cfg_attr(
@@ -533,6 +539,8 @@ impl TcpKeepalive {
533
539
target_os = "linux" ,
534
540
target_os = "macos" ,
535
541
target_os = "netbsd" ,
542
+ target_os = "tvos" ,
543
+ target_os = "watchos" ,
536
544
)
537
545
) ) )
538
546
) ]
Original file line number Diff line number Diff line change @@ -303,9 +303,11 @@ impl fmt::Debug for SockAddr {
303
303
target_os = "ios" ,
304
304
target_os = "macos" ,
305
305
target_os = "netbsd" ,
306
+ target_os = "nto" ,
306
307
target_os = "openbsd" ,
308
+ target_os = "tvos" ,
307
309
target_os = "vxworks" ,
308
- target_os = "nto " ,
310
+ target_os = "watchos " ,
309
311
) ) ]
310
312
f. field ( "ss_len" , & self . storage . ss_len ) ;
311
313
f. field ( "ss_family" , & self . storage . ss_family )
Original file line number Diff line number Diff line change @@ -770,7 +770,12 @@ fn set_common_flags(socket: Socket) -> io::Result<Socket> {
770
770
socket. _set_cloexec ( true ) ?;
771
771
772
772
// On Apple platforms set `NOSIGPIPE`.
773
- #[ cfg( any( target_os = "ios" , target_os = "macos" ) ) ]
773
+ #[ cfg( any(
774
+ target_os = "ios" ,
775
+ target_os = "macos" ,
776
+ target_os = "tvos" ,
777
+ target_os = "watchos" ,
778
+ ) ) ]
774
779
socket. _set_nosigpipe ( true ) ?;
775
780
776
781
Ok ( socket)
@@ -1798,6 +1803,8 @@ impl Socket {
1798
1803
target_os = "linux" ,
1799
1804
target_os = "macos" ,
1800
1805
target_os = "netbsd" ,
1806
+ target_os = "tvos" ,
1807
+ target_os = "watchos" ,
1801
1808
)
1802
1809
) ) ]
1803
1810
#[ cfg_attr(
@@ -1814,6 +1821,8 @@ impl Socket {
1814
1821
target_os = "linux" ,
1815
1822
target_os = "macos" ,
1816
1823
target_os = "netbsd" ,
1824
+ target_os = "tvos" ,
1825
+ target_os = "watchos" ,
1817
1826
)
1818
1827
) ) )
1819
1828
) ]
@@ -1841,6 +1850,8 @@ impl Socket {
1841
1850
target_os = "linux" ,
1842
1851
target_os = "macos" ,
1843
1852
target_os = "netbsd" ,
1853
+ target_os = "tvos" ,
1854
+ target_os = "watchos" ,
1844
1855
)
1845
1856
) ) ]
1846
1857
#[ cfg_attr(
@@ -1857,6 +1868,8 @@ impl Socket {
1857
1868
target_os = "linux" ,
1858
1869
target_os = "macos" ,
1859
1870
target_os = "netbsd" ,
1871
+ target_os = "tvos" ,
1872
+ target_os = "watchos" ,
1860
1873
)
1861
1874
) ) )
1862
1875
) ]
You can’t perform that action at this time.
0 commit comments