Author: scottl
Date: Tue Feb 28 21:27:51 2017
New Revision: 314420
URL: https://svnweb.freebsd.org/changeset/base/314420

Log:
  Provide a comment on why stdio.h needs to be included.

Modified:
  head/sys/kern/subr_prf.c

Modified: head/sys/kern/subr_prf.c
==============================================================================
--- head/sys/kern/subr_prf.c    Tue Feb 28 21:18:45 2017        (r314419)
+++ head/sys/kern/subr_prf.c    Tue Feb 28 21:27:51 2017        (r314420)
@@ -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
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to