From: Rob Landley Date: Tue, 12 Sep 2006 20:29:22 +0000 (-0000) Subject: Fix from Bernhard for somebody trying to limp along with gcc 2.95.4. X-Git-Tag: 1_4_0~700 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1b2b5cfba81aab3e56d374ee3dcee97cde4bcb4e;p=oweals%2Fbusybox.git Fix from Bernhard for somebody trying to limp along with gcc 2.95.4. --- diff --git a/include/platform.h b/include/platform.h index fdaf50920..fa7749b39 100644 --- a/include/platform.h +++ b/include/platform.h @@ -83,6 +83,14 @@ # endif #endif +/* gcc-2.95 had no va_copy but only __va_copy. */ +#if !__GNUC_PREREQ (3,0) +# include +# if !defined va_copy && defined __va_copy +# define va_copy(d,s) __va_copy((d),(s)) +# endif +#endif + /* ---- Endian Detection ------------------------------------ */ #if (defined __digital__ && defined __unix__)