diff options
author | Scott Long <scottl@FreeBSD.org> | 2017-02-28 21:27:51 +0000 |
---|---|---|
committer | Scott Long <scottl@FreeBSD.org> | 2017-02-28 21:27:51 +0000 |
commit | 38e41e66e581b72a910ca7d693bbd9fbd32c37e0 (patch) | |
tree | 33a5d5eabafd08af6c50b5332db91d47e1430945 /sys/kern/subr_prf.c | |
parent | c4e929946ca6e5fa4f39b8966d21080bf164f2e8 (diff) | |
download | src-38e41e66e581b72a910ca7d693bbd9fbd32c37e0.tar.gz src-38e41e66e581b72a910ca7d693bbd9fbd32c37e0.zip |
Provide a comment on why stdio.h needs to be included.
Notes
Notes:
svn path=/head/; revision=314420
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r-- | sys/kern/subr_prf.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <machine/stdarg.h> #else #include <stdarg.h> +#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 <stdio.h> #endif |