Commit d029cf82 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

My idiocy knows no bounds. Make sure this actually builds.

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@724 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 9a2f5554
......@@ -6,11 +6,13 @@
#define COMPAT_H_INCLUDED
#ifndef HAVE_VASPRINTF
int vasprintf(char **strp, const char *fmt, va_list ap)
#ifdef va_start /* make sure <stdarg.h> is in scope */
int vasprintf(char **strp, const char *fmt, va_list ap);
#endif
#endif
#ifndef HAVE_ASPRINTF
int asprintf(char **strp, const char *fmt, ...)
int asprintf(char **strp, const char *fmt, ...);
#endif
#ifndef HAVE_STRLCPY
......
......@@ -5,14 +5,15 @@
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include "compat.h"
#ifndef HAVE_VASPRINTF
int
asprintf(char **strp, const char *fmt, va_list ap)
vasprintf(char **strp, const char *fmt, va_list ap)
{
va_list ap, aq;
va_list aq;
int ret;
va_copy(aq, ap);
......
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