Don't avoid our *sprintf replacements.

Don't let systems with broken printf(3) avoid our replacements
via asprintf(3)/vasprintf(3) calling libc internally.  From djm@
This commit is contained in:
Darren Tucker 2018-10-12 16:58:47 +11:00
parent e526127cbd
commit 797cdd9c84

View File

@ -19,6 +19,15 @@
#include "includes.h" #include "includes.h"
/*
* Don't let systems with broken printf(3) avoid our replacements
* via asprintf(3)/vasprintf(3) calling libc internally.
*/
#if defined(BROKEN_SNPRINTF)
# undef HAVE_VASPRINTF
# undef HAVE_ASPRINTF
#endif
#ifndef HAVE_VASPRINTF #ifndef HAVE_VASPRINTF
#include <errno.h> #include <errno.h>