From 5341791935df601306ffc57a665763c4ecd72755 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Thu, 2 Nov 2023 00:34:29 +0900 Subject: [PATCH] Add support for tvOS and watchOS (#84) --- src/unix.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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(