diff options
Diffstat (limited to 'lib/libmemstat/memstat_uma.c')
-rw-r--r-- | lib/libmemstat/memstat_uma.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libmemstat/memstat_uma.c b/lib/libmemstat/memstat_uma.c index 3020937..8e2c4e8 100644 --- a/lib/libmemstat/memstat_uma.c +++ b/lib/libmemstat/memstat_uma.c @@ -27,7 +27,6 @@ */ #include <sys/param.h> -#include <sys/cpuset.h> #include <sys/sysctl.h> #define LIBMEMSTAT /* Cause vm_page.h not to include opt_vmpage.h */ @@ -106,7 +105,7 @@ retry: return (-1); } - if (maxcpus > MAXCPU) { + if (maxcpus > MEMSTAT_MAXCPU) { list->mtl_error = MEMSTAT_ERROR_TOOMANYCPUS; return (-1); } @@ -170,7 +169,7 @@ retry: return (-1); } - if (ushp->ush_maxcpus > MAXCPU) { + if (ushp->ush_maxcpus > MEMSTAT_MAXCPU) { list->mtl_error = MEMSTAT_ERROR_TOOMANYCPUS; free(buffer); return (-1); |