svn commit: r292110 - head/contrib/top

Kurt Lidl lidl at FreeBSD.org
Fri Dec 11 15:12:02 UTC 2015


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
 


More information about the svn-src-head mailing list