From 10198ef6f309d13caddb6a549ecd5072be813e4a Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 22 Aug 2018 12:36:28 -0600 Subject: [PATCH] Only include stdarg.h if we need it. --- include/sudo_compat.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/sudo_compat.h b/include/sudo_compat.h index b5fb9bfb4..5c3284014 100644 --- a/include/sudo_compat.h +++ b/include/sudo_compat.h @@ -23,7 +23,10 @@ #define SUDO_COMPAT_H #include -#include +#if !defined(HAVE_VSNPRINTF) || !defined(HAVE_VASPRINTF) || \ + !defined(HAVE_VSYSLOG) || defined(PREFER_PORTABLE_SNPRINTF) +# include +#endif #if !defined(HAVE_MEMSET_S) && !defined(rsize_t) # include /* for rsize_t */ # ifdef HAVE_STRING_H -- 2.40.0