diff options
author | Olivier Houchard <cognet@FreeBSD.org> | 2019-01-13 00:19:15 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-10-28 09:42:21 +0200 |
commit | 5120e9470c305e607e99766cac0e9d681612153c (patch) | |
tree | fac7cdde21d3d15ec3fd447b10ed2a301968401a | |
parent | 07bb469634187703d15f791e539eb3734c1595fb (diff) |
Instead of using an incomplete list of platforms
that uses 64bits time_t in 32bits mode, special case amd64, as i386 is
the only arch that still uses 32bits time_t.
-rw-r--r-- | cpukit/score/src/kern_tc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c index d154381541..cc2b47aeb8 100644 --- a/cpukit/score/src/kern_tc.c +++ b/cpukit/score/src/kern_tc.c @@ -273,7 +273,8 @@ sysctl_kern_boottime(SYSCTL_HANDLER_ARGS) getboottime(&boottime); -#ifndef __mips__ +/* i386 is the only arch which uses a 32bits time_t */ +#ifdef __amd64__ #ifdef SCTL_MASK32 int tv[2]; |