commit ea4a07701e15f1417aa1229235db1ca80cbda4ef (tree)
parent 54d196bb300770394fd57db718ff1768edd552f8
Author: Mikko Kaihlavirta <37382384+kaihlavirta@users.noreply.github.com>
Date: Sun, 22 Oct 2023 17:59:03 +0300
add missing timeval struct
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/std/os/windows/ws2_32.zig b/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.