[PATCH 08/27] Instead of using an incomplete list of platforms

Moyano, Gabriel gabriel.moyano at dlr.de
Wed Nov 17 07:50:20 UTC 2021


From: Olivier Houchard <cognet at FreeBSD.org>

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 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];
 
-- 
2.17.1



More information about the devel mailing list