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 2626//
2727//===----------------------------------------------------------------------===//
2828
29- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS )
29+ #if canImport(Darwin )
3030import Darwin
3131#elseif os(Windows)
3232import ucrt
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ extension UnixSignalsSequence {
7373
7474 init ( signals: Set < UnixSignal > ) async {
7575 let sources : [ Source ] = signals. map { sig in
76- #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS )
76+ #if canImport(Darwin )
7777 // On Darwin platforms Dispatch's signal source uses kqueue and EVFILT_SIGNAL for
7878 // delivering signals. This exists alongside but with lower precedence than signal and
7979 // sigaction: ignore signal handling here to kqueue can deliver signals.
You can’t perform that action at this time.
0 commit comments