diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-03-13 01:43:37 -0400 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-03-13 20:42:03 +0100 |
commit | f72cc8c81afe03667cc1ee70169ed343a40f4578 (patch) | |
tree | b5df9d9aeff8a0b71bdd4c4eae21011111a366f3 /linux | |
parent | 5447f965f1e109f7ac9aeb91c0e3906969a4adb8 (diff) | |
download | gnumach-f72cc8c81afe03667cc1ee70169ed343a40f4578.tar.gz gnumach-f72cc8c81afe03667cc1ee70169ed343a40f4578.tar.bz2 gnumach-f72cc8c81afe03667cc1ee70169ed343a40f4578.zip |
Use host_get_time64 in glue code
Message-Id: <ZA64CbpYEz+BgiEw@jupiter.tail36e24.ts.net>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/dev/glue/misc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/dev/glue/misc.c b/linux/dev/glue/misc.c index 92541c7b..5646e5ea 100644 --- a/linux/dev/glue/misc.c +++ b/linux/dev/glue/misc.c @@ -235,7 +235,10 @@ do_gettimeofday (struct timeval *tv) * expensive, and the host argument is not used by host_get_time (), * only checked not to be HOST_NULL. */ - host_get_time ((host_t) 1, (time_value_t *) tv); + time_value64_t tv64; + host_get_time64 ((host_t) 1, &tv64); + tv->tv_sec = tv64.seconds; + tv->tv_usec = tv64.nanoseconds / 1000; } int |