Skip to content

Commit 90bb24e

Browse files
committed
Fix AT_RESOLVE_BENEATH availability
1 parent 4238b86 commit 90bb24e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Sources/System/FileSystem/Stat.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,13 @@ public struct Stat: RawRepresentable, Sendable {
7676
public static var symlinkNoFollowAny: Flags { Flags(rawValue: _AT_SYMLINK_NOFOLLOW_ANY) }
7777
#endif
7878

79-
#if SYSTEM_PACKAGE_DARWIN || os(FreeBSD)
79+
#if canImport(Darwin, _version: 346) || os(FreeBSD)
8080
/// If the path does not reside in the hierarchy beneath the starting directory, return an error.
8181
///
8282
/// The corresponding C constant is `AT_RESOLVE_BENEATH`.
8383
/// - Note: Only available on Darwin and FreeBSD.
8484
@_alwaysEmitIntoClient
85+
@available(macOS 26.0, iOS 26.0, tvOS 26.0, watchOS 26.0, visionOS 26.0, *)
8586
public static var resolveBeneath: Flags { Flags(rawValue: _AT_RESOLVE_BENEATH) }
8687
#endif
8788

Sources/System/Internals/Constants.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ internal var _AT_SYMLINK_NOFOLLOW: CInt { AT_SYMLINK_FOLLOW }
658658
internal var _AT_SYMLINK_NOFOLLOW_ANY: CInt { AT_SYMLINK_NOFOLLOW_ANY }
659659
#endif
660660

661-
#if SYSTEM_PACKAGE_DARWIN || os(FreeBSD)
661+
#if canImport(Darwin, _version: 346) || os(FreeBSD)
662662
@_alwaysEmitIntoClient
663663
internal var _AT_RESOLVE_BENEATH: CInt { AT_RESOLVE_BENEATH }
664664
#endif

0 commit comments

Comments
 (0)