From f6d6d305e762a24b4d6ca18771174fd6240da99d Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Mon, 25 Apr 2016 00:00:00 -0500 Subject: [PATCH] top: adapt source to changes with includes, 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 --- top/top.c | 2 +- top/top.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/top/top.c b/top/top.c index dfe53f17..a30228bd 100644 --- a/top/top.c +++ b/top/top.c @@ -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 - // --------------------------------------------- + // ------------------------------------------------- static struct procps_stat *Cpu_ctx; static struct procps_jiffs_hist *Cpu_jiffs; // ------------------------------------------------- diff --git a/top/top.h b/top/top.h index f16e7b8c..9ecb055d 100644 --- a/top/top.h +++ b/top/top.h @@ -20,8 +20,7 @@ #ifndef _Itop #define _Itop -#include -#include +#include /* Defines represented in configure.ac ----------------------------- */ //#define BOOST_PERCNT /* enable extra precision for two % fields */