svn commit: r307873 - head/sys/kern

Marcel Moolenaar marcel at FreeBSD.org
Mon Oct 24 18:03:06 UTC 2016


Author: marcel
Date: Mon Oct 24 18:03:04 2016
New Revision: 307873
URL: https://svnweb.freebsd.org/changeset/base/307873

Log:
  Include <stdarg.h> instead of <machine/stdarg.h> when compiled as
  part of libsbuf. The former is the standard header, and allows us
  to compile libsbuf on macOS/linux.

Modified:
  head/sys/kern/subr_prf.c

Modified: head/sys/kern/subr_prf.c
==============================================================================
--- head/sys/kern/subr_prf.c	Mon Oct 24 17:59:25 2016	(r307872)
+++ head/sys/kern/subr_prf.c	Mon Oct 24 18:03:04 2016	(r307873)
@@ -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 <machine/stdarg.h>
+#else
+#include <stdarg.h>
+#endif
 
 #ifdef _KERNEL
 


More information about the svn-src-head mailing list