Skip to content

Commit

Permalink
adds support for compiling against Musl
Browse files Browse the repository at this point in the history
  • Loading branch information
t089 committed Nov 22, 2024
1 parent c210d53 commit 572c37a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Sources/Soto/Extensions/STS/Environment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@
//
//===----------------------------------------------------------------------===//

#if os(Linux)
import Glibc
#if canImport(Darwin)
import Darwin.C
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#else
import Darwin.C
#error("The Soto module was unable to identify your C library.")
#endif

enum Environment {
Expand Down

0 comments on commit 572c37a

Please sign in to comment.