Commit ea4a07701e

Mikko Kaihlavirta <37382384+kaihlavirta@users.noreply.github.com>
2023-10-22 16:59:03
add missing timeval struct
1 parent 54d196b
Changed files (1)
lib
std
os
windows
lib/std/os/windows/ws2_32.zig
@@ -11,11 +11,11 @@ const USHORT = windows.USHORT;
 const WCHAR = windows.WCHAR;
 const BOOL = windows.BOOL;
 const HANDLE = windows.HANDLE;
-const timeval = windows.timeval;
 const HWND = windows.HWND;
 const INT = windows.INT;
 const SHORT = windows.SHORT;
 const CHAR = windows.CHAR;
+const LONG = windows.LONG;
 const ULONG = windows.ULONG;
 const LPARAM = windows.LPARAM;
 const FARPROC = windows.FARPROC;
@@ -1261,6 +1261,11 @@ pub const hostent = extern struct {
     h_addr_list: **i8,
 };
 
+pub const timeval = extern struct {
+    tv_sec: LONG,
+    tv_usec: LONG,
+};
+
 // https://docs.microsoft.com/en-au/windows/win32/winsock/windows-sockets-error-codes-2
 pub const WinsockError = enum(u16) {
     /// Specified event object handle is invalid.