ports/devel/libdispatch/patches/patch-src_swift_Wrapper_swift

33 lines
1.1 KiB
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
backport of https://github.com/apple/swift-corelibs-libdispatch/pull/559
Index: src/swift/Wrapper.swift
--- src/swift/Wrapper.swift.orig
+++ src/swift/Wrapper.swift
@@ -181,7 +181,7 @@ extension DispatchSource : DispatchSourceMachSend,
}
#endif
-#if !os(Linux) && !os(Android) && !os(Windows)
+#if !os(Linux) && !os(Android) && !os(Windows) && !os(OpenBSD)
extension DispatchSource : DispatchSourceProcess,
DispatchSourceFileSystemObject {
}
@@ -272,7 +272,7 @@ public protocol DispatchSourceMemoryPressure : Dispatc
}
#endif
-#if !os(Linux) && !os(Android) && !os(Windows)
+#if !os(Linux) && !os(Android) && !os(Windows) && !os(OpenBSD)
public protocol DispatchSourceProcess : DispatchSourceProtocol {
var handle: pid_t { get }
@@ -302,7 +302,7 @@ public protocol DispatchSourceTimer : DispatchSourcePr
func scheduleRepeating(wallDeadline: DispatchWallTime, interval: Double, leeway: DispatchTimeInterval)
}
-#if !os(Linux) && !os(Android) && !os(Windows)
+#if !os(Linux) && !os(Android) && !os(Windows) && !os(OpenBSD)
public protocol DispatchSourceFileSystemObject : DispatchSourceProtocol {
var handle: Int32 { get }