@@ -23,7 +23,7 @@ public struct Errno: RawRepresentable, Error, Hashable, Codable {
2323 @_alwaysEmitIntoClient
2424 private init ( _ raw: CInt ) { self . init ( rawValue: raw) }
2525
26- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
26+ #if DARWIN
2727 /// Error. Not used.
2828 @_alwaysEmitIntoClient
2929 public static var notUsed : Errno { Errno ( _ERRNO_NOT_USED) }
@@ -911,7 +911,7 @@ public struct Errno: RawRepresentable, Error, Hashable, Codable {
911911 @available ( * , unavailable, renamed: " directoryNotEmpty " )
912912 public static var ENOTEMPTY : Errno { directoryNotEmpty }
913913
914- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
914+ #if DARWIN
915915 /// Too many processes.
916916 ///
917917 /// The corresponding C error is `EPROCLIM`.
@@ -968,7 +968,7 @@ public struct Errno: RawRepresentable, Error, Hashable, Codable {
968968 public static var ESTALE : Errno { staleNFSFileHandle }
969969
970970// TODO: Add Linux's RPC equivalents
971- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
971+ #if DARWIN
972972
973973 /// The structure of the remote procedure call (RPC) is bad.
974974 ///
@@ -1060,7 +1060,7 @@ public struct Errno: RawRepresentable, Error, Hashable, Codable {
10601060 public static var ENOSYS : Errno { noFunction }
10611061
10621062// BSD
1063- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
1063+ #if DARWIN
10641064 /// Inappropriate file type or format.
10651065 ///
10661066 /// The file was the wrong type for the operation,
@@ -1075,7 +1075,7 @@ public struct Errno: RawRepresentable, Error, Hashable, Codable {
10751075 public static var EFTYPE : Errno { badFileTypeOrFormat }
10761076#endif
10771077
1078- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
1078+ #if DARWIN
10791079 /// Authentication error.
10801080 ///
10811081 /// The authentication ticket used to mount an NFS file system was invalid.
@@ -1102,7 +1102,7 @@ public struct Errno: RawRepresentable, Error, Hashable, Codable {
11021102 public static var ENEEDAUTH : Errno { needAuthenticator }
11031103#endif
11041104
1105- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
1105+ #if DARWIN
11061106 /// Device power is off.
11071107 ///
11081108 /// The corresponding C error is `EPWROFF`.
@@ -1142,7 +1142,7 @@ public struct Errno: RawRepresentable, Error, Hashable, Codable {
11421142 public static var EOVERFLOW : Errno { overflow }
11431143#endif
11441144
1145- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
1145+ #if DARWIN
11461146 /// Bad executable or shared library.
11471147 ///
11481148 /// The executable or shared library being referenced was malformed.
@@ -1246,7 +1246,7 @@ public struct Errno: RawRepresentable, Error, Hashable, Codable {
12461246 @available ( * , unavailable, renamed: " illegalByteSequence " )
12471247 public static var EILSEQ : Errno { illegalByteSequence }
12481248
1249- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
1249+ #if DARWIN
12501250 /// Attribute not found.
12511251 ///
12521252 /// The specified extended attribute doesn't exist.
@@ -1413,7 +1413,7 @@ extension Errno {
14131413 @available ( * , unavailable, renamed: " tooManyRemoteLevels " )
14141414 public static var EREMOTE : Errno { tooManyRemoteLevels }
14151415
1416- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
1416+ #if DARWIN
14171417 /// No such policy registered.
14181418 ///
14191419 /// The corresponding C error is `ENOPOLICY`.
@@ -1447,7 +1447,7 @@ extension Errno {
14471447 public static var EOWNERDEAD : Errno { previousOwnerDied }
14481448#endif
14491449
1450- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
1450+ #if DARWIN
14511451 /// Interface output queue is full.
14521452 ///
14531453 /// The corresponding C error is `EQFULL`.
0 commit comments