Skip to content

Commit c330e64

Browse files
Fix WASI.swift to import Musl instead of Glibc on musl-based systems
1 parent d622138 commit c330e64

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/WASI/WASI.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ import WasmTypes
44

55
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
66
import Darwin
7-
#elseif os(Linux) || os(FreeBSD) || os(Android)
7+
#elseif canImport(Glibc)
88
import Glibc
9+
#elseif canImport(Musl)
10+
import Musl
911
#elseif os(Windows)
1012
import ucrt
1113
#else

0 commit comments

Comments
 (0)