Index: sys/net/vnet.h =================================================================== --- sys/net/vnet.h +++ sys/net/vnet.h @@ -64,7 +64,7 @@ * pointer to storage for virtualized global variables. Expose to userspace * as required for libkvm. */ -#if defined(_KERNEL) || defined(_WANT_VNET) +#if defined(_KERNEL) || defined(_WANT_VNET) || defined(_KERNEL_UT) #include struct vnet { @@ -87,7 +87,7 @@ #define VNET_SYMPREFIX "vnet_entry_" #endif -#ifdef _KERNEL +#if defined(_KERNEL) || defined(_KERNEL_UT) #define VNET_PCPUSTAT_DECLARE(type, name) \ VNET_DECLARE(counter_u64_t, name[sizeof(type) / sizeof(uint64_t)]) @@ -452,6 +452,6 @@ #define VNET_GLOBAL_EVENTHANDLER_REGISTER(name, func, arg, priority) \ eventhandler_register(NULL, #name, func, arg, priority) #endif /* VIMAGE */ -#endif /* _KERNEL */ +#endif /* _KERNEL || _KERNEL_UT_VNET_ */ #endif /* !_NET_VNET_H_ */