From 5feca068d740b165d3c36a690f5a68b7588b6625 Mon Sep 17 00:00:00 2001 From: Alexander Gottwald Date: Thu, 3 Feb 2005 09:58:47 +0000 Subject: [PATCH] Bugzilla #1865 (https://bugs.freedesktop.org/show_bug.cgi?id=1865) attachment #1827 (https://bugs.freedesktop.org/attachment.cgi?id=1827): check for va_copy not being defined and use __va_copy if available --- os/xprintf.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/os/xprintf.c b/os/xprintf.c index 6fa530bd2..ee5d7daf6 100644 --- a/os/xprintf.c +++ b/os/xprintf.c @@ -30,6 +30,14 @@ #include "os.h" #include #include + +#ifndef va_copy +# ifdef __va_copy +# define va_copy __va_copy +# else +# error "no working va_copy was found" +# endif +#endif char * Xvprintf(const char *format, va_list va)