From a4cc953911a745d6e769a03cbe6442ee2fc27cbd Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Wed, 29 Oct 2014 15:44:36 -0500 Subject: Improve and simplify function and header detection logic. Simplify autoconf checks by using AC_CHECK_FUNCS/HEADERS. Clarify some ambiguous dependencies around strnlen/strndup. Unconditionally enable pidwraptest for all arc4random implementations. Remove HAVE_VASPRINTF conditional, since asprintf requires vasprintf. ok @doug --- crypto/compat/bsd-asprintf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'crypto/compat/bsd-asprintf.c') diff --git a/crypto/compat/bsd-asprintf.c b/crypto/compat/bsd-asprintf.c index 8ccfa22..3728bc5 100644 --- a/crypto/compat/bsd-asprintf.c +++ b/crypto/compat/bsd-asprintf.c @@ -17,7 +17,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifndef HAVE_VASPRINTF +#ifndef HAVE_ASPRINTF #include #include /* for INT_MAX */ @@ -80,9 +80,7 @@ fail: errno = ENOMEM; return (-1); } -#endif -#ifndef HAVE_ASPRINTF int asprintf(char **str, const char *fmt, ...) { va_list ap; -- cgit v1.2.3-55-g6feb