Commit d194919a authored by Rusty Russell's avatar Rusty Russell

asprintf: #include <stdarg.h> in test/run.c

We get away with it on Linux, not on Solaris.
parent 1bfd1464
#include <ccan/asprintf/asprintf.h>
/* Include the C files directly. */
#include <stdarg.h>
/* Override vasprintf for testing. */
#if HAVE_ASPRINTF
#define vasprintf my_vasprintf
static int my_vasprintf(char **strp, const char *fmt, va_list ap);
#else
#include <stdio.h>
#include <stdarg.h>
#define vsnprintf my_vsnprintf
static int my_vsnprintf(char *str, size_t size, const char *format, va_list ap);
#endif
......
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