mirror of
https://github.com/apple/swift-crypto
synced 2026-11-22 04:30:39 +00:00
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.
This commit is contained in:
1 parent
c661debfc2
commit
b1f7679f29
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user