Index: sys/sys/malloc.h =================================================================== --- sys/sys/malloc.h +++ sys/sys/malloc.h @@ -39,7 +39,7 @@ #ifndef _STANDALONE #include -#ifdef _KERNEL +#if defined(_KERNEL) || defined(_KERNEL_UT) #include #endif #include @@ -141,7 +141,7 @@ char mth_name[MALLOC_MAX_NAME]; }; -#ifdef _KERNEL +#if defined(_KERNEL) || defined(_KERNEL_UT) #define MALLOC_DEFINE(type, shortdesc, longdesc) \ struct malloc_type type[1] = { \ { \