File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 37
37
38
38
#[ cfg( not( any( target_os = "macos" ,
39
39
target_os = "ios" ,
40
+ target_os = "tvos" ,
40
41
target_os = "watchos" ,
41
42
target_os = "netbsd" ,
42
43
target_os = "openbsd" ) ) ) ]
@@ -887,7 +888,7 @@ extern "C" {
887
888
}
888
889
889
890
cfg_if ! {
890
- if #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "watchos" ) ) ] {
891
+ if #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" , target_os = " watchos") ) ] {
891
892
mod apple;
892
893
pub use self :: apple:: * ;
893
894
} else if #[ cfg( any( target_os = "openbsd" , target_os = "netbsd" ) ) ] {
Original file line number Diff line number Diff line change @@ -356,6 +356,7 @@ cfg_if! {
356
356
extern { }
357
357
} else if #[ cfg( any( target_os = "macos" ,
358
358
target_os = "ios" ,
359
+ target_os = "tvos" ,
359
360
target_os = "watchos" ,
360
361
target_os = "android" ,
361
362
target_os = "openbsd" ) ) ] {
@@ -1030,7 +1031,12 @@ extern "C" {
1030
1031
pub fn getrusage ( resource : :: c_int , usage : * mut rusage ) -> :: c_int ;
1031
1032
1032
1033
#[ cfg_attr(
1033
- any( target_os = "macos" , target_os = "ios" , target_os = "watchos" ) ,
1034
+ any(
1035
+ target_os = "macos" ,
1036
+ target_os = "ios" ,
1037
+ target_os = "tvos" ,
1038
+ target_os = "watchos"
1039
+ ) ,
1034
1040
link_name = "realpath$DARWIN_EXTSN"
1035
1041
) ]
1036
1042
pub fn realpath ( pathname : * const :: c_char , resolved : * mut :: c_char ) -> * mut :: c_char ;
@@ -1197,7 +1203,12 @@ extern "C" {
1197
1203
link_name = "__res_init"
1198
1204
) ]
1199
1205
#[ cfg_attr(
1200
- any( target_os = "macos" , target_os = "ios" , target_os = "watchos" ) ,
1206
+ any(
1207
+ target_os = "macos" ,
1208
+ target_os = "ios" ,
1209
+ target_os = "tvos" ,
1210
+ target_os = "watchos"
1211
+ ) ,
1201
1212
link_name = "res_9_init"
1202
1213
) ]
1203
1214
pub fn res_init ( ) -> :: c_int ;
@@ -1483,6 +1494,7 @@ cfg_if! {
1483
1494
pub use self :: linux_like:: * ;
1484
1495
} else if #[ cfg( any( target_os = "macos" ,
1485
1496
target_os = "ios" ,
1497
+ target_os = "tvos" ,
1486
1498
target_os = "watchos" ,
1487
1499
target_os = "freebsd" ,
1488
1500
target_os = "dragonfly" ,
You can’t perform that action at this time.
0 commit comments