From c710c0671fad507b07cbc2094244fe6f2f909955 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 12 Jan 2005 22:30:54 +0000 Subject: r4718: don't use the deprecated __va_copy() unless va_copy() is unavailable (This used to be commit 603ef69be075821e3ffe2084bb5cfb0bc9cce180) --- source4/lib/talloc/talloc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/lib/talloc') diff --git a/source4/lib/talloc/talloc.c b/source4/lib/talloc/talloc.c index 4c8cc31028..e05b196592 100644 --- a/source4/lib/talloc/talloc.c +++ b/source4/lib/talloc/talloc.c @@ -873,6 +873,8 @@ char *talloc_strndup(const void *t, const char *p, size_t n) #ifndef VA_COPY #ifdef HAVE_VA_COPY +#define VA_COPY(dest, src) va_copy(dest, src) +#elif defined(HAVE___VA_COPY) #define VA_COPY(dest, src) __va_copy(dest, src) #else #define VA_COPY(dest, src) (dest) = (src) -- cgit