--- include/iprt/string.h.orig 2021-01-07 15:31:33 UTC +++ include/iprt/string.h @@ -46,6 +46,11 @@ #elif defined(RT_OS_FREEBSD) && defined(_KERNEL) RT_C_DECLS_BEGIN # include + /* + * Kludge for the FreeBSD kernel: + * sys/libkern.h includes sys/param.h via sys/systm.h since r335879. + */ +# undef PVM RT_C_DECLS_END #elif defined(RT_OS_NETBSD) && defined(_KERNEL)