Skip to content

Commit e06fcbe

Browse files
committed
FileHandle: NSUnsupported not NSUnavailable
Windows does not support `SOCKET`s as file descriptors, so mark this function as `NSUnsupported`.
1 parent dfb1ba5 commit e06fcbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/FileHandle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ extension FileHandle {
882882
@available(Windows, unavailable, message: "A SOCKET cannot be treated as a fd")
883883
open func acceptConnectionInBackgroundAndNotify(forModes modes: [RunLoop.Mode]?) {
884884
#if os(Windows)
885-
NSUnavailable()
885+
NSUnsupported()
886886
#else
887887
let owner = monitor(forReading: true, resumed: false) { (handle, source) in
888888
var notification = Notification(name: .NSFileHandleConnectionAccepted, object: handle, userInfo: [:])

0 commit comments

Comments
 (0)