1- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
1+ #if SYSTEM_PACKAGE_DARWIN
22import Darwin
33#elseif os(Linux) || os(FreeBSD) || os(Android)
44import Glibc
@@ -12,7 +12,7 @@ import WinSDK
1212import SystemPackage
1313
1414extension FileDescriptor {
15- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
15+ #if SYSTEM_PACKAGE_DARWIN
1616
1717 /// Announces an intention to read specific region of file data.
1818 ///
@@ -266,7 +266,7 @@ extension FileDescriptor {
266266
267267 @_alwaysEmitIntoClient
268268 public var accessTime : Clock . TimeSpec {
269- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
269+ #if SYSTEM_PACKAGE_DARWIN
270270 Clock . TimeSpec ( rawValue: self . rawValue. st_atimespec)
271271 #else
272272 Clock . TimeSpec ( rawValue: self . rawValue. st_atim)
@@ -275,7 +275,7 @@ extension FileDescriptor {
275275
276276 @_alwaysEmitIntoClient
277277 public var modificationTime : Clock . TimeSpec {
278- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
278+ #if SYSTEM_PACKAGE_DARWIN
279279 Clock . TimeSpec ( rawValue: self . rawValue. st_mtimespec)
280280 #else
281281 Clock . TimeSpec ( rawValue: self . rawValue. st_mtim)
@@ -284,7 +284,7 @@ extension FileDescriptor {
284284
285285 @_alwaysEmitIntoClient
286286 public var creationTime : Clock . TimeSpec {
287- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
287+ #if SYSTEM_PACKAGE_DARWIN
288288 Clock . TimeSpec ( rawValue: self . rawValue. st_ctimespec)
289289 #else
290290 Clock . TimeSpec ( rawValue: self . rawValue. st_ctim)
0 commit comments