Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Dec 2015 15:12:01 +0000 (UTC)
From:      Kurt Lidl <lidl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r292110 - head/contrib/top
Message-ID:  <201512111512.tBBFC1q3000851@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lidl
Date: Fri Dec 11 15:12:01 2015
New Revision: 292110
URL: https://svnweb.freebsd.org/changeset/base/292110

Log:
  Fixup include protections for building on mips64 with clang
  
  Reviewed by:	sbruno, imp
  Approved by:	rpaulo (mentor)
  Differential Revision:	https://reviews.freebsd.org/D4457

Modified:
  head/contrib/top/loadavg.h

Modified: head/contrib/top/loadavg.h
==============================================================================
--- head/contrib/top/loadavg.h	Fri Dec 11 14:56:19 2015	(r292109)
+++ head/contrib/top/loadavg.h	Fri Dec 11 15:12:01 2015	(r292110)
@@ -19,10 +19,10 @@
  *
  * Defined types:  load_avg for load averages, pctcpu for cpu percentages.
  */
-#if defined(mips) && !defined(NetBSD)
+#if defined(mips) && !(defined(NetBSD) || defined(FreeBSD))
 # include <sys/fixpoint.h>
 # if defined(FBITS) && !defined(FSCALE)
-#  define FSCALE (1 << FBITS)	/* mips */
+#  define FSCALE (1 << FBITS)	/* RISC/os on mips */
 # endif
 #endif
 



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