diff --git a/lib/std/posix.zig b/lib/std/posix.zig index 9fb55db0c8..ae638226a1 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,