From 9a2261a92a7880a93ab5c1ef8622b85c6e98d983 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Mon, 3 Jun 2002 13:37:52 +0000 Subject: Since includes.h isn't included here, VA_COPY has to be defined here. I don't see any include file that is guaranteed to be here, so I'm defining it locally. Fixes AIX and Solaris builds. (This used to be commit ca6bb47c22385a2c32be6ac3f8d9ffbfda45359b) --- source3/lib/snprintf.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source3/lib/snprintf.c b/source3/lib/snprintf.c index aaad55f22a..cd1e63ce59 100644 --- a/source3/lib/snprintf.c +++ b/source3/lib/snprintf.c @@ -105,6 +105,14 @@ #define SAFE_FREE(x) do { if ((x) != NULL) {free((x)); (x)=NULL;} } while(0) #endif +#ifndef VA_COPY +#ifdef HAVE_VA_COPY +#define VA_COPY(dest, src) __va_copy(dest, src) +#else +#define VA_COPY(dest, src) (dest) = (src) +#endif +#endif + static size_t dopr(char *buffer, size_t maxlen, const char *format, va_list args_in); static void fmtstr(char *buffer, size_t *currlen, size_t maxlen, -- cgit