Skip to content

Commit

Permalink
Remove thread-safety exemption for MacOS
Browse files Browse the repository at this point in the history
See #610 for details.
  • Loading branch information
jhpratt committed Aug 26, 2023
1 parent eb866d4 commit 5b2d6f8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion tests/utc_offset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
3 changes: 0 additions & 3 deletions time/src/sys/local_offset_at/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 5b2d6f8

Please sign in to comment.