Skip to content

Commit 5b3b882

Browse files
committed
chore: Adding missing wasilibc and pthread imports.
1 parent d3828e6 commit 5b3b882

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Sources/Instrumentation/Locks.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ import Glibc
3434
import Android
3535
#elseif canImport(Musl)
3636
import Musl
37+
#elseif canImport(WASILibc)
38+
import WASILibc
39+
#if canImport(wasi_pthread)
40+
import wasi_pthread
41+
#endif
3742
#else
3843
#error("Unsupported runtime")
3944
#endif

Sources/Tracing/TracingTime.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,16 @@ import Glibc
2323
import Android
2424
#elseif canImport(Musl)
2525
import Musl
26+
#elseif canImport(WASILibc)
27+
import WASILibc
2628
#else
2729
#error("Unsupported runtime")
2830
#endif
2931

32+
#if canImport(_CWASI)
33+
import _CWASI
34+
#endif
35+
3036
public protocol TracerInstant: Comparable, Hashable, Sendable {
3137
/// Representation of this instant as the number of nanoseconds since UNIX Epoch (January 1st 1970)
3238
var nanosecondsSinceEpoch: UInt64 { get }

0 commit comments

Comments
 (0)