diff --git a/lib/libmemstat/memstat_uma.c b/lib/libmemstat/memstat_uma.c index 9572384c4349..f0912258d93a 100644 --- a/lib/libmemstat/memstat_uma.c +++ b/lib/libmemstat/memstat_uma.c @@ -29,17 +29,9 @@ #include #include -/* - * XXX: Grubbing around in UMA(9) using libkvm requires internal knowledge of - * a number of VM-related bits. The ifdefs around those bits are not - * designed with a nosy user-space consumer in mind. - */ +#define LIBMEMSTAT /* Cause vm_page.h not to include opt_vmpage.h */ #include -#define _KERNEL /* XXX: vm_page.h confusion. */ -#define KLD_MODULE /* XXX: vm_page.h shouldn't include opt_vmpage.h. */ #include -#undef KLD_MODULE -#undef _KERNEL #include #include