From e0cab5cdb34e0ba461ab074804dac59b3f0dc798 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 24 Oct 2022 23:05:07 -0600 Subject: [PATCH] subr_physmem: Fix userspace build Include stdbool.h in userspace configurations. For the kernel builds we get it from sys/types.h, but bool isn't defined there for non-kernel builds and this otherwise kernel-only file is used for the physmem test suite. Fixes: deb1e3b71998 Sponsored by: Netflix --- sys/sys/physmem.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/sys/physmem.h b/sys/sys/physmem.h index dcf12b589d05..8ef75c47c1ce 100644 --- a/sys/sys/physmem.h +++ b/sys/sys/physmem.h @@ -31,6 +31,10 @@ #ifndef _SYS_PHYSMEM_H_ #define _SYS_PHYSMEM_H_ +#ifndef _KERNEL +#include +#endif + /* * Routines to help configure physical ram. *