svn commit: r322820 - head/contrib/top

Ed Maste emaste at FreeBSD.org
Wed Aug 23 17:56:56 UTC 2017


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 */


More information about the svn-src-head mailing list