blob: fff4f374522f010381db80872609ab5ecd47c06e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- swift-corelibs-libdispatch/src/swift/Wrapper.swift.orig 2023-06-15 00:55:45 UTC
+++ swift-corelibs-libdispatch/src/swift/Wrapper.swift
@@ -181,7 +181,7 @@ extension DispatchSource : DispatchSourceMachSend,
}
#endif
-#if !os(Linux) && !os(Android) && !os(Windows)
+#if HAVE_MACH
extension DispatchSource : DispatchSourceProcess,
DispatchSourceFileSystemObject {
}
@@ -272,7 +272,7 @@ public protocol DispatchSourceMemoryPressure : Dispatc
}
#endif
-#if !os(Linux) && !os(Android) && !os(Windows)
+#if HAVE_MACH
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 HAVE_MACH
public protocol DispatchSourceFileSystemObject : DispatchSourceProtocol {
var handle: Int32 { get }
|