]> granicus.if.org Git - procps-ng/commitdiff
top: eliminated the use of that 'procps.h' header file
authorJim Warner <james.warner@comcast.net>
Sat, 1 Sep 2018 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Wed, 12 Sep 2018 11:12:06 +0000 (21:12 +1000)
That prior patch set the stage for eliminating the use
of that 'procps.h' header, while retaining support for
a ./configure -DXTRA_PROCPS_DEBUG' during development.

This commit just eliminates top's use of 'procps.h' in
favor of a separate include for needed newlib headers.

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c

index 4fe6896275a23ca9c45cade8e4bbb5d214127f04..02c98ade08af6e4ff0f8eb9e50ec88ea387ef3ca 100644 (file)
--- a/top/top.c
+++ b/top/top.c
 #include "../include/signals.h"
 #include "../include/nls.h"
 
-#include <proc/procps.h>
+#include <proc/meminfo.h>
+#include <proc/pids.h>
+#include <proc/stat.h>
+#include <proc/sysinfo.h>
+#include <proc/uptime.h>
+#include <proc/version.h>
 
 #include "top.h"
 #include "top_nls.h"