From 202339d49461ce6dcffd3a5b3690537daea5ef38 Mon Sep 17 00:00:00 2001 From: David Michael Date: Wed, 1 May 2013 21:10:34 -0400 Subject: utils/vmstat: Use gnumach.defs from gnumach The gnumach installation provides the include file mach/gnumach.defs instead of mach/gnumach.h. This runs the defs file through MIG and builds the result for vmstat. * utils/vmstat.c: Replace with "gnumach_U.h". * utils/Makefile (vmstat): Add rule to depend on gnumach_U.o. * Makeconf (mach_defs_names): Add gnumach. --- utils/Makefile | 2 ++ utils/vmstat.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/Makefile b/utils/Makefile index e3bed0bf..e2388f5c 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -61,6 +61,8 @@ ps w ids settrans syncfs showtrans fsysopts storeinfo login vmstat portinfo \ $(filter-out $(special-targets), $(targets)): %: %.o +vmstat: gnumachUser.o + rpctrace: ../libports/libports.a ../libihash/libihash.a rpctrace-CPPFLAGS = -DDATADIR=\"${datadir}\" diff --git a/utils/vmstat.c b/utils/vmstat.c index e3944848..90d128ff 100644 --- a/utils/vmstat.c +++ b/utils/vmstat.c @@ -27,8 +27,8 @@ #include #include +#include "gnumach_U.h" #include -#include #include #include #include -- cgit v1.2.3