From f4440f180acd67f8e91728872a83aec6d7b0435f Mon Sep 17 00:00:00 2001 From: landley Date: Tue, 12 Sep 2006 20:29:22 +0000 Subject: Fix from Bernhard for somebody trying to limp along with gcc 2.95.4. git-svn-id: svn://busybox.net/trunk/busybox@16109 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- include/platform.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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__) -- cgit v1.2.3-55-g6feb