Skip to content

Commit b1f7679

Browse files
authored
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.
1 parent c661deb commit b1f7679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/_CryptoExtras/Util/ThreadSpecific/ThreadPosix.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
//
2626
//===----------------------------------------------------------------------===//
2727

28-
#if os(Linux) || os(Android) || os(FreeBSD) || canImport(Darwin)
28+
#if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD) || canImport(Darwin)
2929
#if canImport(Glibc)
3030
@preconcurrency import Glibc
3131
#elseif canImport(Bionic)

0 commit comments

Comments
 (0)