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;...@@ -11,11 +11,11 @@ const USHORT = windows.USHORT;
11const WCHAR = windows.WCHAR;11const WCHAR = windows.WCHAR;
12const BOOL = windows.BOOL;12const BOOL = windows.BOOL;
13const HANDLE = windows.HANDLE;13const HANDLE = windows.HANDLE;
14const timeval = windows.timeval;
15const HWND = windows.HWND;14const HWND = windows.HWND;
16const INT = windows.INT;15const INT = windows.INT;
17const SHORT = windows.SHORT;16const SHORT = windows.SHORT;
18const CHAR = windows.CHAR;17const CHAR = windows.CHAR;
18const LONG = windows.LONG;
19const ULONG = windows.ULONG;19const ULONG = windows.ULONG;
20const LPARAM = windows.LPARAM;20const LPARAM = windows.LPARAM;
21const FARPROC = windows.FARPROC;21const FARPROC = windows.FARPROC;
...@@ -1261,6 +1261,11 @@ pub const hostent = extern struct {...@@ -1261,6 +1261,11 @@ pub const hostent = extern struct {
1261 h_addr_list: **i8,1261 h_addr_list: **i8,
1262};1262};
12631263
1264pub const timeval = extern struct {
1265 tv_sec: LONG,
1266 tv_usec: LONG,
1267};
1268
1264// https://docs.microsoft.com/en-au/windows/win32/winsock/windows-sockets-error-codes-21269// https://docs.microsoft.com/en-au/windows/win32/winsock/windows-sockets-error-codes-2
1265pub const WinsockError = enum(u16) {1270pub const WinsockError = enum(u16) {
1266 /// Specified event object handle is invalid.1271 /// Specified event object handle is invalid.