@@ -356,6 +356,7 @@ cfg_if! {
356356 extern { }
357357 } else if #[ cfg( any( target_os = "macos" ,
358358 target_os = "ios" ,
359+ target_os = "watchos" ,
359360 target_os = "android" ,
360361 target_os = "openbsd" ) ) ] {
361362 #[ link( name = "c" ) ]
@@ -1025,7 +1026,7 @@ extern "C" {
10251026 pub fn getrusage ( resource : :: c_int , usage : * mut rusage ) -> :: c_int ;
10261027
10271028 #[ cfg_attr(
1028- any( target_os = "macos" , target_os = "ios" ) ,
1029+ any( target_os = "macos" , target_os = "ios" , target_os = "watchos" ) ,
10291030 link_name = "realpath$DARWIN_EXTSN"
10301031 ) ]
10311032 pub fn realpath ( pathname : * const :: c_char , resolved : * mut :: c_char ) -> * mut :: c_char ;
@@ -1191,7 +1192,10 @@ extern "C" {
11911192 ) ,
11921193 link_name = "__res_init"
11931194 ) ]
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+ ) ]
11951199 pub fn res_init ( ) -> :: c_int ;
11961200
11971201 #[ cfg_attr( target_os = "netbsd" , link_name = "__gmtime_r50" ) ]
@@ -1464,6 +1468,7 @@ cfg_if! {
14641468 pub use self :: linux_like:: * ;
14651469 } else if #[ cfg( any( target_os = "macos" ,
14661470 target_os = "ios" ,
1471+ target_os = "watchos" ,
14671472 target_os = "freebsd" ,
14681473 target_os = "dragonfly" ,
14691474 target_os = "openbsd" ,
0 commit comments