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