top: adapt source to changes with includes, <STAT> api

All other programs were able to accommodate the change
in name from readstat.h to stat.h without modification
because they were all using that procps.h header file.

Well now top can too (providing you ignore a comment).

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2016-04-25 00:00:00 -05:00 committed by Craig Small
parent 3a48427d5d
commit f6d6d305e7
2 changed files with 2 additions and 3 deletions

View File

@ -232,7 +232,7 @@ enum Rel_items {
};
// mem stack results extractor macro, where e=rel enum
#define MEM_VAL(e) Mem_stack->head[e].result.ul_int
// --------------------------------------------- <proc/readstat.h>
// ------------------------------------------------- <proc/stat.h>
static struct procps_stat *Cpu_ctx;
static struct procps_jiffs_hist *Cpu_jiffs;
// ------------------------------------------------- <proc/pids.h>

View File

@ -20,8 +20,7 @@
#ifndef _Itop
#define _Itop
#include <proc/pids.h>
#include <proc/readstat.h>
#include <proc/procps.h>
/* Defines represented in configure.ac ----------------------------- */
//#define BOOST_PERCNT /* enable extra precision for two % fields */