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