diff options
| author | Vladimir Michael Eatwell <dimir@fb.com> | 2022-03-23 16:05:01 +0000 |
|---|---|---|
| committer | Vladimir Michael Eatwell <dimir@fb.com> | 2022-07-20 08:57:36 +0100 |
| commit | 439d64a83c84fe36befacc4af867eaadb96589d5 (patch) | |
| tree | 18b420b8abf27c5511e8d1bee7fbfc1a715f3799 /library/std/src/sys/unix/mod.rs | |
| parent | c3605f8c8020dbbe8f0d1961c7b33c4c4b78ad0d (diff) | |
| download | rust-439d64a83c84fe36befacc4af867eaadb96589d5.tar.gz rust-439d64a83c84fe36befacc4af867eaadb96589d5.zip | |
Library changes for Apple WatchOS
Diffstat (limited to 'library/std/src/sys/unix/mod.rs')
| -rw-r--r-- | library/std/src/sys/unix/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/mod.rs b/library/std/src/sys/unix/mod.rs index 34a023b02c4..3d0d91460f7 100644 --- a/library/std/src/sys/unix/mod.rs +++ b/library/std/src/sys/unix/mod.rs @@ -86,6 +86,7 @@ pub unsafe fn init(argc: isize, argv: *const *const u8) { // The poll on Darwin doesn't set POLLNVAL for closed fds. target_os = "macos", target_os = "ios", + target_os = "watchos", target_os = "redox", target_os = "l4re", target_os = "horizon", @@ -329,7 +330,7 @@ cfg_if::cfg_if! { // See #41582 and https://blog.achernya.com/2013/03/os-x-has-silly-libsystem.html #[link(name = "resolv")] extern "C" {} - } else if #[cfg(target_os = "ios")] { + } else if #[cfg(any(target_os = "ios", target_os = "watchos"))] { #[link(name = "System")] #[link(name = "objc")] #[link(name = "Security", kind = "framework")] |
