From ede51c41cb6a292cab0290ad672f36d476e476de Mon Sep 17 00:00:00 2001 From: Sarunas <3808892+vsarunas@users.noreply.github.com> Date: Fri, 12 Jun 2026 09:26:21 +0300 Subject: [PATCH] fix: build with MemberImportVisibility --- Sources/System/FilePath/FilePathTempPosix.swift | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Sources/System/FilePath/FilePathTempPosix.swift b/Sources/System/FilePath/FilePathTempPosix.swift index e8713c2..2ac7098 100644 --- a/Sources/System/FilePath/FilePathTempPosix.swift +++ b/Sources/System/FilePath/FilePathTempPosix.swift @@ -9,6 +9,23 @@ #if !os(Windows) +#if SYSTEM_PACKAGE_DARWIN +import Darwin +#elseif canImport(Glibc) +import CSystem +import Glibc +#elseif canImport(Musl) +import CSystem +import Musl +#elseif canImport(WASILibc) +import WASILibc +#elseif canImport(Android) +import CSystem +import Android +#else +#error("Unsupported Platform") +#endif + /// Get the path to the system temporary directory. internal func _getTemporaryDirectory() throws -> FilePath { guard let tmp = system_getenv("TMPDIR") else {