From db792209dd4855c15f3f4580d6059c34e28ac18f Mon Sep 17 00:00:00 2001 From: Kurt Lidl Date: Fri, 11 Dec 2015 15:12:01 +0000 Subject: [PATCH] Fixup include protections for building on mips64 with clang Reviewed by: sbruno, imp Approved by: rpaulo (mentor) Differential Revision: https://reviews.freebsd.org/D4457 --- contrib/top/loadavg.h | 4 ++-- 1 file 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 # if defined(FBITS) && !defined(FSCALE) -# define FSCALE (1 << FBITS) /* mips */ +# define FSCALE (1 << FBITS) /* RISC/os on mips */ # endif #endif