svn commit: r331261 - head/sys/cam/scsi
John Baldwin
jhb at FreeBSD.org
Tue Mar 20 21:00:46 UTC 2018
Author: jhb
Date: Tue Mar 20 21:00:45 2018
New Revision: 331261
URL: https://svnweb.freebsd.org/changeset/base/331261
Log:
Use <stdarg.h> instead of <machine/stdarg.h> in userland.
<machine/stdarg.h> is a kernel-only header. The standard header for
userland is <stdarg.h>. Using the standard header in userland avoids
weird build errors when building with external compilers that include
their own stdarg.h header.
Reviewed by: arichardson, brooks, imp
Sponsored by: DARPA / AFRL
Differential Revision: https://reviews.freebsd.org/D14776
Modified:
head/sys/cam/scsi/scsi_all.h
Modified: head/sys/cam/scsi/scsi_all.h
==============================================================================
--- head/sys/cam/scsi/scsi_all.h Tue Mar 20 20:45:47 2018 (r331260)
+++ head/sys/cam/scsi/scsi_all.h Tue Mar 20 21:00:45 2018 (r331261)
@@ -25,7 +25,11 @@
#define _SCSI_SCSI_ALL_H 1
#include <sys/cdefs.h>
+#ifdef _KERNEL
#include <machine/stdarg.h>
+#else
+#include <stdarg.h>
+#endif
#ifdef _KERNEL
/*
More information about the svn-src-head
mailing list