mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
vmm_instruction_emul.c: fix bhyve build
The __diagused macro was used to cure a "set but not used" warning. This
broke the build for bhyve since __diagused is only defined in the
kernel. Define __diagused when not building the kernel.
Fixes: 5241577a22 ("vmm: fix set but not used warning")
Reported by: Jenkins
This commit is contained in:
parent
be0d16b0b0
commit
d4e8207317
1 changed files with 1 additions and 0 deletions
|
|
@ -58,6 +58,7 @@ __FBSDID("$FreeBSD$");
|
|||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <vmmapi.h>
|
||||
#define __diagused
|
||||
#define KASSERT(exp,msg) assert((exp))
|
||||
#define panic(...) errx(4, __VA_ARGS__)
|
||||
#endif /* _KERNEL */
|
||||
|
|
|
|||
Loading…
Reference in a new issue