From 78a92b8d0dd6b9728955d009562bcb34cb7a0fdd Mon Sep 17 00:00:00 2001 From: Tobias Date: Fri, 22 Nov 2024 16:10:52 +0100 Subject: [PATCH] adds support for compiling against Musl (#742) --- Sources/Soto/Extensions/STS/Environment.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Sources/Soto/Extensions/STS/Environment.swift b/Sources/Soto/Extensions/STS/Environment.swift index 59ec727ce5..7c9ae01322 100644 --- a/Sources/Soto/Extensions/STS/Environment.swift +++ b/Sources/Soto/Extensions/STS/Environment.swift @@ -12,10 +12,14 @@ // //===----------------------------------------------------------------------===// -#if os(Linux) +#if canImport(Glibc) import Glibc -#else +#elseif canImport(Musl) +import Musl +#elseif canImport(Darwin) import Darwin.C +#else +#error("The Soto module was unable to identify your C library.") #endif enum Environment {