From b1f7679f29c343ee2df0c61a5abbfd3cab413c77 Mon Sep 17 00:00:00 2001 From: 3405691582 Date: Tue, 16 Sep 2025 11:08:43 -0400 Subject: [PATCH] Buildfix OpenBSD. (#411) The threading changes missed an `os(OpenBSD)`, causing the Swift toolchain build to fail. ### Checklist - [ ] I've run tests to see all new and existing tests pass - [X] I've followed the code style of the rest of the project - [X] I've read the [Contribution Guidelines](CONTRIBUTING.md) - [ ] I've updated the documentation if necessary #### If you've made changes to `gyb` files - [ ] I've run `./scripts/generate_boilerplate_files_with_gyb.sh` and included updated generated files in a commit of this pull request ### Motivation: Buildfix the upstream Swift toolchain on OpenBSD. ### Modifications: Added an `os(OpenBSD)` conditional, much like FreeBSD. ### Result: The Swift toolchain will build successfully again. --- Sources/_CryptoExtras/Util/ThreadSpecific/ThreadPosix.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/_CryptoExtras/Util/ThreadSpecific/ThreadPosix.swift b/Sources/_CryptoExtras/Util/ThreadSpecific/ThreadPosix.swift index 6b2ccdf0..07051a67 100644 --- a/Sources/_CryptoExtras/Util/ThreadSpecific/ThreadPosix.swift +++ b/Sources/_CryptoExtras/Util/ThreadSpecific/ThreadPosix.swift @@ -25,7 +25,7 @@ // //===----------------------------------------------------------------------===// -#if os(Linux) || os(Android) || os(FreeBSD) || canImport(Darwin) +#if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD) || canImport(Darwin) #if canImport(Glibc) @preconcurrency import Glibc #elseif canImport(Bionic)