From 07f862a76947ec6d3c9941fe7815b6c81e8cd03a Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Mon, 24 Oct 2016 18:03:04 +0000 Subject: [PATCH] Include instead of when compiled as part of libsbuf. The former is the standard header, and allows us to compile libsbuf on macOS/linux. --- sys/kern/subr_prf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index 5886438fc48..e78863830c7 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -72,7 +72,11 @@ __FBSDID("$FreeBSD$"); * Note that stdarg.h and the ANSI style va_start macro is used for both * ANSI and traditional C compilers. */ +#ifdef _KERNEL #include +#else +#include +#endif #ifdef _KERNEL