mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
windows.sendto fix (#15831)
This commit is contained in:
parent
496320d935
commit
ff835cce10
1 changed files with 1 additions and 1 deletions
|
|
@ -5979,7 +5979,7 @@ pub fn sendto(
|
|||
addrlen: socklen_t,
|
||||
) SendToError!usize {
|
||||
if (builtin.os.tag == .windows) {
|
||||
switch (windows.ws2_32.sendto(sockfd, buf.ptr, buf.len, flags, dest_addr, addrlen)) {
|
||||
switch (windows.sendto(sockfd, buf.ptr, buf.len, flags, dest_addr, addrlen)) {
|
||||
windows.ws2_32.SOCKET_ERROR => switch (windows.ws2_32.WSAGetLastError()) {
|
||||
.WSAEACCES => return error.AccessDenied,
|
||||
.WSAEADDRNOTAVAIL => return error.AddressNotAvailable,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue