Skip to content

Commit ddc4739

Browse files
committed
Fix broken merge for wasi threads
1 parent 7778dd3 commit ddc4739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AsyncSequenceValidation/TaskDriver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func start_thread(_ raw: UnsafeMutableRawPointer) -> UnsafeMutableRawPointer {
5353
final class TaskDriver: Sendable {
5454
let work: @Sendable (TaskDriver) -> Void
5555
let queue: WorkQueue
56-
#if canImport(Darwin)
56+
#if canImport(Darwin) || canImport(wasi_pthread)
5757
nonisolated(unsafe) var thread: pthread_t?
5858
#elseif canImport(Glibc) || canImport(Musl) || canImport(Bionic)
5959
nonisolated(unsafe) var thread = pthread_t()

0 commit comments

Comments
 (0)