aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1common/asn1_buffer.c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2017-10-06 16:35:45 -0700
committerLev Walkin <vlm@lionet.info>2017-10-06 16:35:45 -0700
commit6bdd8c0ae1485ed45394471d2bf36a79b91060e3 (patch)
treed0e0d7b43b39a53584f23052d2433ce9db8c091c /libasn1common/asn1_buffer.c
parent85d7a1b3d87acc6d2334b30b939aafea190343d7 (diff)
vasnprintf for Solaris
Diffstat (limited to 'libasn1common/asn1_buffer.c')
-rw-r--r--libasn1common/asn1_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libasn1common/asn1_buffer.c b/libasn1common/asn1_buffer.c
index 8cc4bc81..cd67b815 100644
--- a/libasn1common/asn1_buffer.c
+++ b/libasn1common/asn1_buffer.c
@@ -9,7 +9,7 @@
#include "asn1_buffer.h"
-#ifndef HAVE_DECL_VASPRINTF
+#if !defined(HAVE_DECL_VASPRINTF) || (HAVE_DECL_VASPRINTF == 0)
int vasprintf(char **ret, const char *fmt, va_list args);
#endif
@@ -139,7 +139,7 @@ int abuf_vprintf(abuf *ab, const char *fmt, va_list ap) {
return ret;
}
-#ifndef HAVE_DECL_VASPRINTF
+#if !defined(HAVE_DECL_VASPRINTF) || (HAVE_DECL_VASPRINTF == 0)
/* Solaris doesn't have vasprintf(3). */
int
vasprintf(char **ret, const char *fmt, va_list args) {