File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1312,7 +1312,7 @@ public struct MultiplexLogHandler: LogHandler {
13121312 }
13131313}
13141314
1315- #if canImport(WASILibc) || os(Android)
1315+ #if canImport(WASILibc) || os(Android) || os(OpenBSD)
13161316internal typealias CFilePointer = OpaquePointer
13171317#else
13181318internal typealias CFilePointer = UnsafeMutablePointer < FILE >
Original file line number Diff line number Diff line change @@ -375,8 +375,10 @@ public class MDC {
375375 return Int ( pthread_mach_thread_np ( pthread_self ( ) ) )
376376 #elseif os(Windows)
377377 return Int ( GetCurrentThreadId ( ) )
378- #elseif os(FreeBSD) || os(OpenBSD)
378+ #elseif os(FreeBSD)
379379 return Int ( pthread_getthreadid_np ( ) )
380+ #elseif os(OpenBSD)
381+ return Int ( bitPattern: pthread_self ( ) )
380382 #else
381383 return Int ( pthread_self ( ) )
382384 #endif
You can’t perform that action at this time.
0 commit comments