diff options
author | lidl <lidl@FreeBSD.org> | 2015-12-11 15:12:01 +0000 |
---|---|---|
committer | lidl <lidl@FreeBSD.org> | 2015-12-11 15:12:01 +0000 |
commit | 741f62a5b13ade81421d6b503bf466d5725cbb1a (patch) | |
tree | cfcd2a25e1a4e3e8d0bc16d0f0bdc03d0fa1fe76 /contrib/top | |
parent | 02c3ce24805bb94230111335e1d0ff68dfd1364a (diff) | |
download | FreeBSD-src-741f62a5b13ade81421d6b503bf466d5725cbb1a.zip FreeBSD-src-741f62a5b13ade81421d6b503bf466d5725cbb1a.tar.gz |
Fixup include protections for building on mips64 with clang
Reviewed by: sbruno, imp
Approved by: rpaulo (mentor)
Differential Revision: https://reviews.freebsd.org/D4457
Diffstat (limited to 'contrib/top')
-rw-r--r-- | contrib/top/loadavg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/top/loadavg.h b/contrib/top/loadavg.h index e3c156c..2f20231 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 |