@@ -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 = "watchos" ,
359
360
target_os = "android" ,
360
361
target_os = "openbsd" ) ) ] {
361
362
#[ link( name = "c" ) ]
@@ -1025,7 +1026,7 @@ extern "C" {
1025
1026
pub fn getrusage ( resource : :: c_int , usage : * mut rusage ) -> :: c_int ;
1026
1027
1027
1028
#[ cfg_attr(
1028
- any( target_os = "macos" , target_os = "ios" ) ,
1029
+ any( target_os = "macos" , target_os = "ios" , target_os = "watchos" ) ,
1029
1030
link_name = "realpath$DARWIN_EXTSN"
1030
1031
) ]
1031
1032
pub fn realpath ( pathname : * const :: c_char , resolved : * mut :: c_char ) -> * mut :: c_char ;
@@ -1191,7 +1192,10 @@ extern "C" {
1191
1192
) ,
1192
1193
link_name = "__res_init"
1193
1194
) ]
1194
- #[ cfg_attr( any( target_os = "macos" , target_os = "ios" ) , link_name = "res_9_init" ) ]
1195
+ #[ cfg_attr(
1196
+ any( target_os = "macos" , target_os = "ios" , target_os = "watchos" ) ,
1197
+ link_name = "res_9_init"
1198
+ ) ]
1195
1199
pub fn res_init ( ) -> :: c_int ;
1196
1200
1197
1201
#[ cfg_attr( target_os = "netbsd" , link_name = "__gmtime_r50" ) ]
@@ -1464,6 +1468,7 @@ cfg_if! {
1464
1468
pub use self :: linux_like:: * ;
1465
1469
} else if #[ cfg( any( target_os = "macos" ,
1466
1470
target_os = "ios" ,
1471
+ target_os = "watchos" ,
1467
1472
target_os = "freebsd" ,
1468
1473
target_os = "dragonfly" ,
1469
1474
target_os = "openbsd" ,
0 commit comments