Date: Tue, 20 Mar 2018 21:00:45 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r331261 - head/sys/cam/scsi Message-ID: <201803202100.w2KL0jot052414@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803202100.w2KL0jot052414>