From faf385dcaa34665f670fa242f7b3b4a45430f75f Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Thu, 22 Jun 2023 16:36:51 +0100 Subject: [PATCH] Add support for Musl libc Since Musl is sufficiently different from Glibc (see https://wiki.musl-libc.org/functional-differences-from-glibc.html), it requires a different import, which now should be applied to files that have `import Glibc` in them. --- Sources/IndexStoreDB/IndexStoreDB.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/IndexStoreDB/IndexStoreDB.swift b/Sources/IndexStoreDB/IndexStoreDB.swift index e870831f..589f3d4c 100644 --- a/Sources/IndexStoreDB/IndexStoreDB.swift +++ b/Sources/IndexStoreDB/IndexStoreDB.swift @@ -16,6 +16,8 @@ import CIndexStoreDB // For `strdup` #if canImport(Glibc) import Glibc +#elseif canImport(Musl) +import Musl #elseif os(Windows) import ucrt #else