File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 26
26
//
27
27
//===----------------------------------------------------------------------===//
28
28
29
- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS )
29
+ #if canImport(Darwin )
30
30
import Darwin
31
31
#elseif os(Windows)
32
32
import ucrt
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ extension UnixSignalsSequence {
73
73
74
74
init ( signals: Set < UnixSignal > ) async {
75
75
let sources : [ Source ] = signals. map { sig in
76
- #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS )
76
+ #if canImport(Darwin )
77
77
// On Darwin platforms Dispatch's signal source uses kqueue and EVFILT_SIGNAL for
78
78
// delivering signals. This exists alongside but with lower precedence than signal and
79
79
// sigaction: ignore signal handling here to kqueue can deliver signals.
You can’t perform that action at this time.
0 commit comments