aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_prf.c
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2017-02-28 21:27:51 +0000
committerScott Long <scottl@FreeBSD.org>2017-02-28 21:27:51 +0000
commit38e41e66e581b72a910ca7d693bbd9fbd32c37e0 (patch)
tree33a5d5eabafd08af6c50b5332db91d47e1430945 /sys/kern/subr_prf.c
parentc4e929946ca6e5fa4f39b8966d21080bf164f2e8 (diff)
downloadsrc-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.c7
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