Date: Wed, 23 Aug 2017 17:56:55 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r322820 - head/contrib/top Message-ID: <201708231756.v7NHutQM016263@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Wed Aug 23 17:56:55 2017 New Revision: 322820 URL: https://svnweb.freebsd.org/changeset/base/322820 Log: top: use __mips__ and __NetBSD__ for consistency r322767 fixed the mips64 build failure with Clang with a minimal change to use __FreeBSD__ instead of FreeBSD in a #if test. For consistency and to facilitate possible upstreaming change the other macros in the test to their canonical form. Discussed with: jhb Modified: head/contrib/top/loadavg.h Modified: head/contrib/top/loadavg.h ============================================================================== --- head/contrib/top/loadavg.h Wed Aug 23 17:52:49 2017 (r322819) +++ head/contrib/top/loadavg.h Wed Aug 23 17:56:55 2017 (r322820) @@ -19,7 +19,7 @@ * * Defined types: load_avg for load averages, pctcpu for cpu percentages. */ -#if defined(mips) && !(defined(NetBSD) || defined(__FreeBSD__)) +#if defined(__mips__) && !(defined(__NetBSD__) || defined(__FreeBSD__)) # include <sys/fixpoint.h> # if defined(FBITS) && !defined(FSCALE) # define FSCALE (1 << FBITS) /* RISC/os on mips */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708231756.v7NHutQM016263>