summaryrefslogtreecommitdiffstats
path: root/contrib/top/machine.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/top/machine.h')
-rw-r--r--contrib/top/machine.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/top/machine.h b/contrib/top/machine.h
index 0f14bf3..4f4f6af 100644
--- a/contrib/top/machine.h
+++ b/contrib/top/machine.h
@@ -1,4 +1,8 @@
/*
+ * $FreeBSD$
+ */
+
+/*
* This file defines the interface between top and the machine-dependent
* module. It is NOT machine dependent and should not need to be changed
* for any specific machine.
@@ -22,12 +26,18 @@ struct statics
* the system_info struct is filled in by a machine dependent routine.
*/
+#ifdef p_active /* uw7 define macro p_active */
+#define P_ACTIVE p_pactive
+#else
+#define P_ACTIVE p_active
+#endif
+
struct system_info
{
int last_pid;
double load_avg[NUM_AVERAGES];
int p_total;
- int p_active; /* number of procs considered "active" */
+ int P_ACTIVE; /* number of procs considered "active" */
int *procstates;
int *cpustates;
int *memory;
OpenPOWER on IntegriCloud