authorgravatar for 37382384+kaihlavirta@users.noreply.github.comMikko Kaihlavirta <37382384+kaihlavirta@users.noreply.github.com> 2023-10-22 17:59:03+03:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-11-22 01:15:11+02:00
logea4a07701e15f1417aa1229235db1ca80cbda4ef
tree77a5ad05417ee925965d12d9f3a75f04d1aa83b6
parent54d196bb300770394fd57db718ff1768edd552f8

add missing timeval struct


1 files changed, 6 insertions(+), 1 deletions(-)

lib/std/os/windows/ws2_32.zig+6-1
......@@ -11,11 +11,11 @@ const USHORT = windows.USHORT;
1111const WCHAR = windows.WCHAR;
1212const BOOL = windows.BOOL;
1313const HANDLE = windows.HANDLE;
14const timeval = windows.timeval;
1514const HWND = windows.HWND;
1615const INT = windows.INT;
1716const SHORT = windows.SHORT;
1817const CHAR = windows.CHAR;
18const LONG = windows.LONG;
1919const ULONG = windows.ULONG;
2020const LPARAM = windows.LPARAM;
2121const FARPROC = windows.FARPROC;
......@@ -1261,6 +1261,11 @@ pub const hostent = extern struct {
12611261 h_addr_list: **i8,
12621262};
12631263
1264pub const timeval = extern struct {
1265 tv_sec: LONG,
1266 tv_usec: LONG,
1267};
1268
12641269// https://docs.microsoft.com/en-au/windows/win32/winsock/windows-sockets-error-codes-2
12651270pub const WinsockError = enum(u16) {
12661271 /// Specified event object handle is invalid.