diff --git a/src/unix.rs b/src/unix.rs index cc426f1..e15431f 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -56,7 +56,13 @@ pub fn set_errno(Errno(errno): Errno) { extern "C" { #[cfg_attr( - any(target_os = "macos", target_os = "ios", target_os = "freebsd"), + any( + target_os = "macos", + target_os = "ios", + target_os = "tvos", + target_os = "watchos", + target_os = "freebsd" + ), link_name = "__error" )] #[cfg_attr(