Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Aug 2017 17:52:09 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322767 - head/contrib/top
Message-ID:  <201708211752.v7LHq9rD030879@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708211752.v7LHq9rD030879>