Fix Timeval for darwin and linux

This commit is contained in:
James Duran
2023-06-07 21:55:08 -07:00
parent 21c1618d94
commit fed0c2ea26
4 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -355,7 +355,7 @@ in6_addr :: struct #packed {
Timeval :: struct {
seconds: i64,
nanoseconds: int,
microseconds: int,
}
Linger :: struct {
+2 -2
View File
@@ -241,7 +241,7 @@ socklen_t :: c.int
Timeval :: struct {
seconds: i64,
nanoseconds: int,
microseconds: int,
}
// "Argv" arguments converted to Odin strings
@@ -1086,4 +1086,4 @@ fcntl :: proc(fd: int, cmd: int, arg: int) -> (int, Errno) {
return 0, _get_errno(result)
}
return result, ERROR_NONE
}
}