diff --git a/lib/std/posix.zig b/lib/std/posix.zig index 9fb55db0c8052fa2b863cb3b8315da746bf11e43..ae638226a18d1cc4c276ddfd15eb46ffb4e4d2e2 100644 --- a/lib/std/posix.zig +++ b/lib/std/posix.zig @@ -3936,6 +3936,7 @@ pub fn accept( .WSANOTINITIALISED => unreachable, // not initialized WSA .WSAECONNRESET => return error.ConnectionResetByPeer, .WSAEFAULT => unreachable, + .WSAENOTSOCK => return error.FileDescriptorNotASocket, .WSAEINVAL => return error.SocketNotListening, .WSAEMFILE => return error.ProcessFdQuotaExceeded, .WSAENETDOWN => return error.NetworkSubsystemFailed,