Distributed: do not import all of Darwin to implement locking facilities

At the same time, drop that dependency in the new build system, so that
we don't add an additional linkage for Darwin platforms compared to what
we are doing in the current build system.

Addresses rdar://158314427
This commit is contained in:
Eric Miotto
2025-08-14 08:51:36 -07:00
parent 02e5d34072
commit eab65319f9
2 changed files with 3 additions and 4 deletions

View File

@@ -12,8 +12,8 @@
import Swift
#if canImport(Darwin)
import Darwin
#if canImport(Darwin.os.lock)
import Darwin.os.lock
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)