summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-asprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/bsd-asprintf.c')
-rw-r--r--openbsd-compat/bsd-asprintf.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-asprintf.c b/openbsd-compat/bsd-asprintf.c
index 822367154..109277271 100644
--- a/openbsd-compat/bsd-asprintf.c
+++ b/openbsd-compat/bsd-asprintf.c
@@ -19,6 +19,15 @@
19 19
20#include "includes.h" 20#include "includes.h"
21 21
22/*
23 * Don't let systems with broken printf(3) avoid our replacements
24 * via asprintf(3)/vasprintf(3) calling libc internally.
25 */
26#if defined(BROKEN_SNPRINTF)
27# undef HAVE_VASPRINTF
28# undef HAVE_ASPRINTF
29#endif
30
22#ifndef HAVE_VASPRINTF 31#ifndef HAVE_VASPRINTF
23 32
24#include <errno.h> 33#include <errno.h>