From 6bdd8c0ae1485ed45394471d2bf36a79b91060e3 Mon Sep 17 00:00:00 2001 From: Lev Walkin Date: Fri, 6 Oct 2017 16:35:45 -0700 Subject: vasnprintf for Solaris --- libasn1common/asn1_buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libasn1common/asn1_buffer.c') 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) { -- cgit v1.2.3