HomeFreeBSD

kassert.h: Explicitly include <sys/types.h> on _KERNEL

Description

kassert.h: Explicitly include <sys/types.h> on _KERNEL

MFCing commit "kassert: Explicitly include <sys/_types.h>" (as
3772cb06205fd6bd) was not enough as, on stable/14 and contrary to main,
<sys/kassert.h> also declares a 'panicked' variable as a 'bool' when
_KERNEL is defined, so 'bool' needs to be defined in this case for
<sys/kassert.h> to be includable standalone.

This is a direct commit to stable/14.

Fixes: 64ca7e040ace ("queue(3): Debug macros: Finer control knobs, userland support")
Sponsored by: The FreeBSD Foundation

Details

Provenance
olceAuthored on May 1 2025, 9:37 PM
Parents
rGf383cfc03bbf: sys.mk: Improve ports compatibility hack guard
Branches
Unknown
Tags
Unknown