mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
std: fix compile error bitrot
These were revealed in an earlier commit in this branch that removed a workaround disabling Windows std lib files from being tested.
This commit is contained in:
parent
d1ad126e34
commit
dd4ca88ca7
@ -1983,7 +1983,7 @@ pub fn loadWinsockExtensionFunction(comptime T: type, sock: ws2_32.SOCKET, guid:
|
||||
ws2_32.SIO_GET_EXTENSION_FUNCTION_POINTER,
|
||||
@ptrCast(*const anyopaque, &guid),
|
||||
@sizeOf(GUID),
|
||||
&function,
|
||||
@intToPtr(?*anyopaque, @ptrToInt(function)),
|
||||
@sizeOf(T),
|
||||
&num_bytes,
|
||||
null,
|
||||
|
||||
@ -2344,6 +2344,6 @@ pub extern "ws2_32" fn getnameinfo(
|
||||
Flags: i32,
|
||||
) callconv(WINAPI) i32;
|
||||
|
||||
pub extern "IPHLPAPI" fn if_nametoindex(
|
||||
pub extern "iphlpapi" fn if_nametoindex(
|
||||
InterfaceName: [*:0]const u8,
|
||||
) callconv(WINAPI) u32;
|
||||
|
||||
@ -27,7 +27,7 @@ pub fn Mixin(comptime Socket: type) type {
|
||||
return switch (ws2_32.WSAGetLastError()) {
|
||||
.WSANOTINITIALISED => {
|
||||
_ = try windows.WSAStartup(2, 2);
|
||||
return Socket.init(domain, socket_type, protocol, flags);
|
||||
return init(domain, socket_type, protocol, flags);
|
||||
},
|
||||
.WSAEAFNOSUPPORT => error.AddressFamilyNotSupported,
|
||||
.WSAEMFILE => error.ProcessFdQuotaExceeded,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user