mirror of
https://github.com/ziglang/zig.git
synced 2025-12-09 15:53:08 +00:00
add missing timeval struct
This commit is contained in:
parent
54d196bb30
commit
ea4a07701e
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user