Skip to content

Commit e4eb545

Browse files
authored
Merge pull request #2913 from compnerd/connection
Foundation: drop `acceptConnectionInBackgroundAndNotify` on Windows
2 parents 6787b8a + 6dd604f commit e4eb545

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/Foundation/FileHandle.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,8 +939,13 @@ extension FileHandle {
939939
}
940940
}
941941

942+
@available(Windows, unavailable, message: "A SOCKET cannot be treated as a fd")
942943
open func acceptConnectionInBackgroundAndNotify() {
944+
#if os(Windows)
945+
NSUnsupported()
946+
#else
943947
acceptConnectionInBackgroundAndNotify(forModes: [.default])
948+
#endif
944949
}
945950

946951
@available(Windows, unavailable, message: "A SOCKET cannot be treated as a fd")

0 commit comments

Comments
 (0)