Index: sys/sys/systm.h =================================================================== --- sys/sys/systm.h +++ sys/sys/systm.h @@ -49,7 +49,7 @@ __NULLABILITY_PRAGMA_PUSH -#ifdef _KERNEL +#if defined(_KERNEL) || defined (_KERNEL_UT) extern int cold; /* nonzero if we are doing a cold boot */ extern int suspend_blocked; /* block suspend due to pending shutdown */ extern int rebooting; /* kern_reboot() has been called. */ @@ -173,7 +173,7 @@ #define __read_frequently __section(".data.read_frequently") #define __exclusive_cache_line __aligned(CACHE_LINE_SIZE) \ __section(".data.exclusive_cache_line") -#ifdef _KERNEL +#if defined(_KERNEL) || defined(_KERNEL_UT) #include /* MAXCPU */ #include /* curthread */ #include @@ -665,7 +665,7 @@ #define __diagused __unused #endif -#endif /* _KERNEL */ +#endif /* _KERNEL || _KERNEL_UT */ __NULLABILITY_PRAGMA_POP #endif /* !_SYS_SYSTM_H_ */