diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index c00087571334..5f809dfca13a 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -76,6 +76,13 @@ __FBSDID("$FreeBSD$"); #include #else #include +#endif + +/* + * This is needed for sbuf_putbuf() when compiled into userland. Due to the + * shared nature of this file, it's the only place to put it. + */ +#ifndef _KERNEL #include #endif