From f6f9cef5a412e37d14996c31e4ea14ca495bedea Mon Sep 17 00:00:00 2001 From: Seil Oh Date: Sat, 2 Nov 2024 21:35:20 +0900 Subject: [PATCH] add support for static linux sdk --- Sources/PNG/System.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/PNG/System.swift b/Sources/PNG/System.swift index 9632eec7..1a5b1311 100644 --- a/Sources/PNG/System.swift +++ b/Sources/PNG/System.swift @@ -4,8 +4,10 @@ #if os(macOS) || os(iOS) import Darwin -#elseif os(Linux) +#elseif canImport(Glibc) import Glibc +#elseif canImport(Musl) + import Musl #elseif os(Windows) #warning("Windows in not oficially supported and is untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)") import ucrt