diff --git a/build.rs b/build.rs index 63d0d386cd..94f45d1158 100644 --- a/build.rs +++ b/build.rs @@ -279,7 +279,7 @@ const LINUX_ABI: &[&str] = &[ /// Operating systems that have the same ABI as macOS on every architecture /// mentioned in `ASM_TARGETS`. -const MACOS_ABI: &[&str] = &["ios", "macos"]; +const MACOS_ABI: &[&str] = &["ios", "macos", "tvos"]; const WINDOWS: &str = "windows"; diff --git a/src/rand.rs b/src/rand.rs index b3a20ffe8b..b9072bb169 100644 --- a/src/rand.rs +++ b/src/rand.rs @@ -131,6 +131,7 @@ impl crate::sealed::Sealed for SystemRandom {} target_os = "haiku", target_os = "illumos", target_os = "ios", + target_os = "tvos", target_os = "linux", target_os = "macos", target_os = "netbsd",