Fix one other place VA_COPY is defined ... should fix NetBSD build.
authorRichard Sharpe <sharpe@samba.org>
Fri, 24 Oct 2003 17:58:30 +0000 (17:58 +0000)
committerRichard Sharpe <sharpe@samba.org>
Fri, 24 Oct 2003 17:58:30 +0000 (17:58 +0000)
(This used to be commit fb69597629bad305f227b5bab62e0f170d3c164c)

source3/include/includes.h

index 2a82098fa9cbfb06a75e6bd793d2b9a0978d75d0..74540f81ba8bd2147b3617a57547b8039c766d55 100644 (file)
@@ -1259,10 +1259,14 @@ int smb_xvasprintf(char **ptr, const char *format, va_list ap) PRINTF_ATTRIBUTE(
 
 /* we need to use __va_copy() on some platforms */
 #ifdef HAVE_VA_COPY
+#define VA_COPY(dest, src) va_copy(dest, src)
+#else
+#ifdef HAVE___VA_COPY
 #define VA_COPY(dest, src) __va_copy(dest, src)
 #else
 #define VA_COPY(dest, src) (dest) = (src)
 #endif
+#endif
 
 #ifndef HAVE_TIMEGM
 time_t timegm(struct tm *tm);