aboutsummaryrefslogtreecommitdiff
path: root/lang/swift510/files/patch-swift-system_Sources_System_Internals_Constants.swift
diff options
context:
space:
mode:
Diffstat (limited to 'lang/swift510/files/patch-swift-system_Sources_System_Internals_Constants.swift')
-rw-r--r--lang/swift510/files/patch-swift-system_Sources_System_Internals_Constants.swift32
1 files changed, 32 insertions, 0 deletions
diff --git a/lang/swift510/files/patch-swift-system_Sources_System_Internals_Constants.swift b/lang/swift510/files/patch-swift-system_Sources_System_Internals_Constants.swift
new file mode 100644
index 000000000000..00b2b2682767
--- /dev/null
+++ b/lang/swift510/files/patch-swift-system_Sources_System_Internals_Constants.swift
@@ -0,0 +1,32 @@
+--- swift-system/Sources/System/Internals/Constants.swift.orig 2021-12-02 19:22:32 UTC
++++ swift-system/Sources/System/Internals/Constants.swift
+@@ -396,23 +396,29 @@ internal var _EMULTIHOP: CInt { EMULTIHOP }
+ @_alwaysEmitIntoClient
+ internal var _EMULTIHOP: CInt { EMULTIHOP }
+
++#if !os(FreeBSD)
+ @_alwaysEmitIntoClient
+ internal var _ENODATA: CInt { ENODATA }
++#endif
+
+ @_alwaysEmitIntoClient
+ internal var _ENOLINK: CInt { ENOLINK }
+
++#if !os(FreeBSD)
+ @_alwaysEmitIntoClient
+ internal var _ENOSR: CInt { ENOSR }
+
+ @_alwaysEmitIntoClient
+ internal var _ENOSTR: CInt { ENOSTR }
++#endif
+
+ @_alwaysEmitIntoClient
+ internal var _EPROTO: CInt { EPROTO }
+
++#if !os(FreeBSD)
+ @_alwaysEmitIntoClient
+ internal var _ETIME: CInt { ETIME }
++#endif
+ #endif
+
+ @_alwaysEmitIntoClient