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
Родитель e526127cbd
Коммит 797cdd9c84
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -19,6 +19,15 @@
#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
#include <errno.h>