From 64ed27960d00f9974709c5f0f0ab89e51b23eb29 Mon Sep 17 00:00:00 2001 From: "Aryan Singh K." <70511529+aryansk@users.noreply.github.com> Date: Tue, 11 Aug 2026 15:10:57 +0530 Subject: [PATCH] fix(MachPort): silence concurrency check for mach_task_self_ Darwin.Mach's mach_task_self_ is a shared global; Swift 6.3 reports it as not concurrency-safe when imported. Use a preconcurrency import so the existing call sites remain valid without per-call-site suppression. Fixes #373 --- Sources/System/MachPort.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/System/MachPort.swift b/Sources/System/MachPort.swift index 124ab0d0..7b47cae7 100644 --- a/Sources/System/MachPort.swift +++ b/Sources/System/MachPort.swift @@ -9,7 +9,7 @@ #if SYSTEM_PACKAGE_DARWIN -import Darwin.Mach +@preconcurrency import Darwin.Mach @available(System 1.4.0, *) public protocol MachPortRight {}