svn commit: r322767 - head/contrib/top
John Baldwin
jhb at FreeBSD.org
Mon Aug 21 17:52:11 UTC 2017
Author: jhb
Date: Mon Aug 21 17:52:09 2017
New Revision: 322767
URL: https://svnweb.freebsd.org/changeset/base/322767
Log:
Fix FreeBSD-presence macro to fix the build on mips with clang.
GCC doesn't define 'mips' which is why it doesn't trip over this.
Sponsored by: DARPA / AFRL
Modified:
head/contrib/top/loadavg.h
Modified: head/contrib/top/loadavg.h
==============================================================================
--- head/contrib/top/loadavg.h Mon Aug 21 17:49:01 2017 (r322766)
+++ head/contrib/top/loadavg.h Mon Aug 21 17:52:09 2017 (r322767)
@@ -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-all
mailing list