summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Houchard <cognet@FreeBSD.org>2019-01-13 00:19:15 +0000
committerMoyano, Gabriel <gabriel.moyano@dlr.de>2021-11-16 09:48:22 +0100
commita9ce44bf8f79185a724487898629c0275a0b60af (patch)
tree4171729e5b57f47a714bb5bf0551ab772fb14328
parentCreate a new macro for static DPCPU data. (diff)
downloadrtems-a9ce44bf8f79185a724487898629c0275a0b60af.tar.bz2
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
index 747ce7edb3..21d018a671 100644
--- a/cpukit/score/src/kern_tc.c
+++ b/cpukit/score/src/kern_tc.c
@@ -256,7 +256,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];