vasnprintf for Solaris
diff --git a/libasn1common/asn1_buffer.c b/libasn1common/asn1_buffer.c
index 8cc4bc8..cd67b81 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 @@
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) {