aboutsummaryrefslogtreecommitdiff
path: root/contrib/top
diff options
context:
space:
mode:
authorKurt Lidl <lidl@FreeBSD.org>2015-12-11 15:12:01 +0000
committerKurt Lidl <lidl@FreeBSD.org>2015-12-11 15:12:01 +0000
commitdb792209dd4855c15f3f4580d6059c34e28ac18f (patch)
treecfcd2a25e1a4e3e8d0bc16d0f0bdc03d0fa1fe76 /contrib/top
parentc8daf7a00fa49989fc8f19eea576e0b996206856 (diff)
downloadsrc-db792209dd4855c15f3f4580d6059c34e28ac18f.tar.gz
src-db792209dd4855c15f3f4580d6059c34e28ac18f.zip
Fixup include protections for building on mips64 with clang
Reviewed by: sbruno, imp Approved by: rpaulo (mentor) Differential Revision: https://reviews.freebsd.org/D4457
Notes
Notes: svn path=/head/; revision=292110
Diffstat (limited to 'contrib/top')
-rw-r--r--contrib/top/loadavg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/top/loadavg.h b/contrib/top/loadavg.h
index e3c156cc12b7..2f20231a6d1d 100644
--- a/contrib/top/loadavg.h
+++ b/contrib/top/loadavg.h
@@ -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