Commit 2859c5db authored by ncopa's avatar ncopa Committed by Rafaël Carré
Browse files properly detect vasprintf

According POSIX the va_list is defined in stdarg.h

On some systems (like uClibc) the detection of vasprintf will fail
unless stdarg.h is included and build will later fail due to a vasprintf
Signed-off-by: ncopa's avatarNatanael Copa <>
Signed-off-by: Rafaël Carré's avatarRafaël Carré <>
parent 488f94b1
......@@ -504,7 +504,8 @@ AC_LINK_IFELSE([
c = NULL;
])],[AC_DEFINE([HAVE_ASPRINTF],[1],[Define to 1 if you have asprintf function])],[AC_LIBOBJ([asprintf])])
AC_LANG_PROGRAM([#include <stdio.h>], [
AC_LANG_PROGRAM([#include <stdio.h>
#include <stdarg.h>], [
char *c;
va_list ap;
if (vasprintf(&c, "%s %d", ap) == -1)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment