Skip to content

Commit 021724b

Browse files
al45tairthomasvl
authored andcommitted
Add support for Musl.
You can't import `Glibc` when using Musl.
1 parent cc3dd41 commit 021724b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/Conformance/main.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
///
1616
// -----------------------------------------------------------------------------
1717

18-
#if os(Linux)
18+
#if canImport(Glibc)
1919
import Glibc
20+
#elseif canImport(Musl)
21+
import Musl
2022
#else
2123
import Darwin.C
2224
#endif

0 commit comments

Comments
 (0)