Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2019 00:19:15 +0000 (UTC)
From:      Olivier Houchard <cognet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r342978 - head/sys/kern
Message-ID:  <201901130019.x0D0JFRD071228@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cognet
Date: Sun Jan 13 00:19:15 2019
New Revision: 342978
URL: https://svnweb.freebsd.org/changeset/base/342978

Log:
  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.

Modified:
  head/sys/kern/kern_tc.c

Modified: head/sys/kern/kern_tc.c
==============================================================================
--- head/sys/kern/kern_tc.c	Sat Jan 12 22:36:33 2019	(r342977)
+++ head/sys/kern/kern_tc.c	Sun Jan 13 00:19:15 2019	(r342978)
@@ -145,7 +145,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];
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901130019.x0D0JFRD071228>