Skip to content

Commit ea4a077

Browse files
kaihlavirtaVexu
authored andcommitted
add missing timeval struct
1 parent 54d196b commit ea4a077

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/std/os/windows/ws2_32.zig

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ const USHORT = windows.USHORT;
1111
const WCHAR = windows.WCHAR;
1212
const BOOL = windows.BOOL;
1313
const HANDLE = windows.HANDLE;
14-
const timeval = windows.timeval;
1514
const HWND = windows.HWND;
1615
const INT = windows.INT;
1716
const SHORT = windows.SHORT;
1817
const CHAR = windows.CHAR;
18+
const LONG = windows.LONG;
1919
const ULONG = windows.ULONG;
2020
const LPARAM = windows.LPARAM;
2121
const FARPROC = windows.FARPROC;
@@ -1261,6 +1261,11 @@ pub const hostent = extern struct {
12611261
h_addr_list: **i8,
12621262
};
12631263

1264+
pub 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
12651270
pub const WinsockError = enum(u16) {
12661271
/// Specified event object handle is invalid.

0 commit comments

Comments
 (0)