From 7654f14f8cd905933ea55048a919c593aeec8a84 Mon Sep 17 00:00:00 2001 From: Guillaume Lessard Date: Wed, 11 Oct 2023 14:28:43 -0700 Subject: [PATCH] [gardening] add some more availability annotations --- Sources/System/MachPort.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/System/MachPort.swift b/Sources/System/MachPort.swift index 223757b..9eb47f8 100644 --- a/Sources/System/MachPort.swift +++ b/Sources/System/MachPort.swift @@ -11,8 +11,10 @@ import Darwin.Mach +@available(/*System 1.3.0: macOS 9999, iOS 9999, watchOS 9999, tvOS 9999*/iOS 8, *) public protocol MachPortRight {} +@available(/*System 1.3.0: macOS 9999, iOS 9999, watchOS 9999, tvOS 9999*/iOS 8, *) @inlinable internal func _machPrecondition( file: StaticString = #file, @@ -27,6 +29,7 @@ internal func _machPrecondition( @available(/*System 1.3.0: macOS 9999, iOS 9999, watchOS 9999, tvOS 9999*/iOS 8, *) @frozen public enum Mach { + @available(/*System 1.3.0: macOS 9999, iOS 9999, watchOS 9999, tvOS 9999*/iOS 8, *) public struct Port: ~Copyable { @usableFromInline internal var _name: mach_port_name_t