Index: sys/sys/types.h =================================================================== --- sys/sys/types.h +++ sys/sys/types.h @@ -270,7 +270,7 @@ typedef __rman_res_t rman_res_t; -#ifdef _KERNEL +#if defined(_KERNEL) || defined(_KERNEL_UT) typedef int boolean_t; typedef struct _device *device_t; typedef __intfptr_t intfptr_t; @@ -293,16 +293,16 @@ typedef struct vm_page *vm_page_t; #define offsetof(type, field) __offsetof(type, field) -#endif /* _KERNEL */ +#endif /* _KERNEL || _KERNEL_UT */ -#if defined(_KERNEL) || defined(_STANDALONE) +#if defined(_KERNEL) || defined(_STANDALONE) || defined(_KERNEL_UT) #if !defined(__bool_true_false_are_defined) && !defined(__cplusplus) #define __bool_true_false_are_defined 1 #define false 0 #define true 1 typedef _Bool bool; #endif /* !__bool_true_false_are_defined && !__cplusplus */ -#endif /* KERNEL || _STANDALONE */ +#endif /* KERNEL || _STANDALONE || _KERNEL_UT */ /* * The following are all things that really shouldn't exist in this header,