summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-12-13 15:01:13 +0000
committerbde <bde@FreeBSD.org>1995-12-13 15:01:13 +0000
commit06e92e8fee2ad3a77db9fa95b40851b13b7fb3b1 (patch)
treec8f34f86c2f8bc2f87de716f33385960d488b604 /usr.bin
parentaa831b16e1fee8f36eb3fb5e2f75cea159062673 (diff)
downloadFreeBSD-src-06e92e8fee2ad3a77db9fa95b40851b13b7fb3b1.zip
FreeBSD-src-06e92e8fee2ad3a77db9fa95b40851b13b7fb3b1.tar.gz
Reduced vm dependencies. Only `struct vmmeter.h' is required.
Unfortunately, the sysctl number for reading this struct is bogusly placed in <vm/vm_param.h> instead of with the declaration of the struct.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/systat/vmstat.c5
-rw-r--r--usr.bin/vmstat/vmstat.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c
index 8432e15..29ffae6 100644
--- a/usr.bin/systat/vmstat.c
+++ b/usr.bin/systat/vmstat.c
@@ -44,12 +44,13 @@ static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94";
#include <sys/buf.h>
#include <sys/stat.h>
#include <sys/time.h>
-#include <sys/user.h>
#include <sys/proc.h>
+#include <sys/uio.h>
#include <sys/namei.h>
#include <sys/sysctl.h>
#include <sys/vmmeter.h>
-#include <vm/vm.h>
+
+#include <vm/vm_param.h>
#include <signal.h>
#include <nlist.h>
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 0c632a2..beaef22 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -44,9 +44,9 @@ static char sccsid[] = "@(#)vmstat.c 8.1 (Berkeley) 6/6/93";
#include <sys/param.h>
#include <sys/time.h>
#include <sys/proc.h>
-#include <sys/user.h>
#include <sys/dkstat.h>
#include <sys/buf.h>
+#include <sys/uio.h>
#include <sys/namei.h>
#include <sys/malloc.h>
#include <sys/signal.h>
@@ -54,7 +54,9 @@ static char sccsid[] = "@(#)vmstat.c 8.1 (Berkeley) 6/6/93";
#include <sys/ioctl.h>
#include <sys/sysctl.h>
#include <sys/vmmeter.h>
-#include <vm/vm.h>
+
+#include <vm/vm_param.h>
+
#include <time.h>
#include <nlist.h>
#include <kvm.h>
OpenPOWER on IntegriCloud