Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Oct 2016 18:03:04 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r307873 - head/sys/kern
Message-ID:  <201610241803.u9OI34Qb044304@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610241803.u9OI34Qb044304>