From 5b2d6f81f0f9b7c87c210fe21cd36d322aa04350 Mon Sep 17 00:00:00 2001 From: Jacob Pratt Date: Sat, 26 Aug 2023 16:58:37 -0400 Subject: [PATCH] Remove thread-safety exemption for MacOS See #610 for details. --- tests/utc_offset.rs | 1 - time/src/sys/local_offset_at/unix.rs | 3 --- 2 files changed, 4 deletions(-) diff --git a/tests/utc_offset.rs b/tests/utc_offset.rs index ecea4eb3f..05a44b4c9 100644 --- a/tests/utc_offset.rs +++ b/tests/utc_offset.rs @@ -178,7 +178,6 @@ fn current_local_offset() { #[test] #[cfg_attr( any( - target_os = "macos", target_os = "netbsd", target_os = "illumos", not(target_family = "unix") diff --git a/time/src/sys/local_offset_at/unix.rs b/time/src/sys/local_offset_at/unix.rs index f4a808932..eddd8e2a9 100644 --- a/time/src/sys/local_offset_at/unix.rs +++ b/time/src/sys/local_offset_at/unix.rs @@ -15,9 +15,6 @@ const OS_HAS_THREAD_SAFE_ENVIRONMENT: bool = match std::env::consts::OS.as_bytes // https://github.com/NetBSD/src/blob/f45028636a44111bc4af44d460924958a4460844/lib/libc/stdlib/getenv.c // https://github.com/NetBSD/src/blob/f45028636a44111bc4af44d460924958a4460844/lib/libc/stdlib/setenv.c | b"netbsd" - // https://github.com/apple-oss-distributions/Libc/blob/d526593760f0f79dfaeb8b96c3c8a42c791156ff/stdlib/FreeBSD/getenv.c - // https://github.com/apple-oss-distributions/Libc/blob/d526593760f0f79dfaeb8b96c3c8a42c791156ff/stdlib/FreeBSD/setenv.c - | b"macos" => true, _ => false, };