$NetBSD: patch-ag,v 1.12 2013/03/17 00:15:29 gdt Exp $ --- agent/mibgroup/host/hr_storage.c.orig 2012-10-09 22:28:58.000000000 +0000 +++ agent/mibgroup/host/hr_storage.c @@ -69,6 +69,13 @@ #endif #endif /* vm/vm.h */ #endif /* sys/vm.h */ +#if HAVE_SYS_POOL_H +#if defined(MBPOOL_SYMBOL) && defined(MCLPOOL_SYMBOL) +#define __POOL_EXPOSE +#include +#else +#undef HAVE_SYS_POOL_H +#endif #if defined(HAVE_UVM_UVM_PARAM_H) && defined(HAVE_UVM_UVM_EXTERN_H) #include #include @@ -76,20 +83,13 @@ #include #include #endif +#endif #if HAVE_KVM_H #include #endif #if HAVE_FCNTL_H #include #endif -#if HAVE_SYS_POOL_H -#if defined(MBPOOL_SYMBOL) && defined(MCLPOOL_SYMBOL) -#define __POOL_EXPOSE -#include -#else -#undef HAVE_SYS_POOL_H -#endif -#endif #if HAVE_SYS_MBUF_H #include #endif