2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 18:08:23 +00:00

Only include stdarg.h if we need it.

This commit is contained in:
Todd C. Miller 2018-08-22 12:36:28 -06:00
parent aaefdd7575
commit 10198ef6f3

View File

@ -23,7 +23,10 @@
#define SUDO_COMPAT_H
#include <stdio.h>
#include <stdarg.h>
#if !defined(HAVE_VSNPRINTF) || !defined(HAVE_VASPRINTF) || \
!defined(HAVE_VSYSLOG) || defined(PREFER_PORTABLE_SNPRINTF)
# include <stdarg.h>
#endif
#if !defined(HAVE_MEMSET_S) && !defined(rsize_t)
# include <stddef.h> /* for rsize_t */
# ifdef HAVE_STRING_H