authorgravatar for bill@axzez.comBill Nagel <bill@axzez.com> 2021-01-11 23:39:45-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-01-12 16:37:58-08:00
log1e2be14b6b77c0d13480fad49aa9445eb18213d7
treeb62117d593b8ba043b0ec9a8e318037cb16c4cbd
parent65b7d2b4e1b82e98410520cbcfa029b205a37d92

define nfds_t for windows


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;
243pub const IPPROTO_ICMPV6 = ws2_32.IPPROTO_ICMPV6;243pub const IPPROTO_ICMPV6 = ws2_32.IPPROTO_ICMPV6;
244pub const IPPROTO_RM = ws2_32.IPPROTO_RM;244pub const IPPROTO_RM = ws2_32.IPPROTO_RM;
245245
246pub const nfds_t = c_ulong;
246pub const pollfd = ws2_32.pollfd;247pub const pollfd = ws2_32.pollfd;
247248
248pub const POLLRDNORM = ws2_32.POLLRDNORM;249pub 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}
13131313
1314pub fn poll(fds: [*]ws2_32.pollfd, n: usize, timeout: i32) i32 {1314pub 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}
13171317
1318pub fn WSAIoctl(1318pub fn WSAIoctl(