From 3e10dc3a84037bf86a744c6631854b580d5fab4b Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 13 Oct 2006 20:40:49 +0000 Subject: [PATCH] audit-one-more-thing-20061013 it never ends --- src/audit/audit.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/audit/audit.c b/src/audit/audit.c index e282a90957..c0f767baa6 100644 --- a/src/audit/audit.c +++ b/src/audit/audit.c @@ -37,6 +37,16 @@ RCSID #endif #include +/* C99 requires va_copy. Older versions of GCC provide __va_copy. Per t + Autoconf manual, memcpy is a generally portable fallback. */ +#ifndef va_copy +# ifdef __va_copy +# define va_copy(d, s) __va_copy((d), (s)) +# else +# define va_copy(d, s) memcpy(&(d), &(s), sizeof(va_list)) +# endif +#endif + char *bufferPtr; int bufferLen; int osi_audit_all = (-1); /* Not determined yet */