[rtems commit] Instead of using an incomplete list of platforms
Sebastian Huber
sebh at rtems.org
Mon Nov 15 08:15:17 UTC 2021
Module: rtems
Branch: master
Commit: 045ed584fe6eaa8590d249980c00bd55fce13231
Changeset: http://git.rtems.org/rtems/commit/?id=045ed584fe6eaa8590d249980c00bd55fce13231
Author: Olivier Houchard <cognet at FreeBSD.org>
Date: Sun Jan 13 00:19:15 2019 +0000
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.
---
cpukit/score/src/kern_tc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
index d154381..cc2b47a 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];
More information about the vc
mailing list