From 3033789995dcc9180dac6c29b1f52da09becf70b Mon Sep 17 00:00:00 2001 From: des Date: Mon, 7 Aug 2006 15:51:32 +0000 Subject: [PATCH] My idiocy knows no bounds. Make sure this actually builds. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@724 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/include/compat.h | 6 ++++-- varnish-cache/lib/libcompat/vasprintf.c | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/varnish-cache/include/compat.h b/varnish-cache/include/compat.h index 1e52a990..c6ff735e 100644 --- a/varnish-cache/include/compat.h +++ b/varnish-cache/include/compat.h @@ -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 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 diff --git a/varnish-cache/lib/libcompat/vasprintf.c b/varnish-cache/lib/libcompat/vasprintf.c index 41ac20e7..08fd6992 100644 --- a/varnish-cache/lib/libcompat/vasprintf.c +++ b/varnish-cache/lib/libcompat/vasprintf.c @@ -5,14 +5,15 @@ #include #include +#include #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); -- 2.39.5