Allow sudo to compile without variadic macro support in cpp.

Debugging support will be limited (no file info from warnings.)
From Daniel Richard G.; Bug #621
This commit is contained in:
Todd C. Miller
2013-11-18 09:10:09 -07:00
parent 96eb2c4f8f
commit 3dab6bd8e9
6 changed files with 41 additions and 19 deletions

View File

@@ -458,6 +458,18 @@ sudo_debug_vprintf2(const char *func, const char *file, int lineno, int level,
errno = saved_errno;
}
#ifdef NO_VARIADIC_MACROS
void
sudo_debug_printf_nvm(int pri, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
sudo_debug_vprintf2(NULL, NULL, 0, pri, fmt, ap);
va_end(ap);
}
#endif /* NO_VARIADIC_MACROS */
void
sudo_debug_printf2(const char *func, const char *file, int lineno, int level,
const char *fmt, ...)