| author | |
| committer | |
| log | 1e2be14b6b77c0d13480fad49aa9445eb18213d7 |
| tree | b62117d593b8ba043b0ec9a8e318037cb16c4cbd |
| parent | 65b7d2b4e1b82e98410520cbcfa029b205a37d92 |
2 files changed, 3 insertions(+), 2 deletions(-)
lib/std/os/bits/windows.zig+1| ... | @@ -243,6 +243,7 @@ pub const IPPROTO_UDP = ws2_32.IPPROTO_UDP; | ... | @@ -243,6 +243,7 @@ pub const IPPROTO_UDP = ws2_32.IPPROTO_UDP; |
| 243 | pub const IPPROTO_ICMPV6 = ws2_32.IPPROTO_ICMPV6; | 243 | pub const IPPROTO_ICMPV6 = ws2_32.IPPROTO_ICMPV6; |
| 244 | pub const IPPROTO_RM = ws2_32.IPPROTO_RM; | 244 | pub const IPPROTO_RM = ws2_32.IPPROTO_RM; |
| 245 | 245 | ||
| 246 | pub const nfds_t = c_ulong; | ||
| 246 | pub const pollfd = ws2_32.pollfd; | 247 | pub const pollfd = ws2_32.pollfd; |
| 247 | 248 | ||
| 248 | pub const POLLRDNORM = ws2_32.POLLRDNORM; | 249 | pub const POLLRDNORM = ws2_32.POLLRDNORM; |
lib/std/os/windows.zig+2-2| ... | @@ -1311,8 +1311,8 @@ pub fn recvfrom(s: ws2_32.SOCKET, buf: [*]u8, len: usize, flags: u32, from: ?*ws | ... | @@ -1311,8 +1311,8 @@ pub fn recvfrom(s: ws2_32.SOCKET, buf: [*]u8, len: usize, flags: u32, from: ?*ws |
| 1311 | } | 1311 | } |
| 1312 | } | 1312 | } |
| 1313 | 1313 | ||
| 1314 | pub fn poll(fds: [*]ws2_32.pollfd, n: usize, timeout: i32) i32 { | 1314 | pub fn poll(fds: [*]ws2_32.pollfd, n: c_ulong, timeout: i32) i32 { |
| 1315 | return ws2_32.WSAPoll(fds, @intCast(u32, n), timeout); | 1315 | return ws2_32.WSAPoll(fds, n, timeout); |
| 1316 | } | 1316 | } |
| 1317 | 1317 | ||
| 1318 | pub fn WSAIoctl( | 1318 | pub fn WSAIoctl( |