diff options
author | Jim McDonough <jmcd@samba.org> | 2002-06-03 13:37:52 +0000 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2002-06-03 13:37:52 +0000 |
commit | 9a2261a92a7880a93ab5c1ef8622b85c6e98d983 (patch) | |
tree | db3282f9a24523a9a221a99d58d51ec0ec2e37e8 | |
parent | 8c64bd92bf3c44599f561abea6abf1841fa88856 (diff) | |
download | samba-9a2261a92a7880a93ab5c1ef8622b85c6e98d983.tar.gz samba-9a2261a92a7880a93ab5c1ef8622b85c6e98d983.tar.bz2 samba-9a2261a92a7880a93ab5c1ef8622b85c6e98d983.zip |
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)
-rw-r--r-- | source3/lib/snprintf.c | 8 |
1 files changed, 8 insertions, 0 deletions
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, |