From 70988851ef04fed01f1e52527e654fff9196714b Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Fri, 12 Sep 1997 00:39:10 +0000 Subject: Patches from Fred Fish for systems with sys/varargs.h but not varargs.h. * protoize.c: Include only if HAVE_VARARGS_H is defined. If not defined, include if HAVE_SYS_VARARGS_H is defined. * configure.in: Test for varargs.h and sys/varargs.h. * configure: Regenerate with autoconf. * config.in: Regenerate with autoheader. From-SVN: r15420 --- gcc/protoize.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/protoize.c') diff --git a/gcc/protoize.c b/gcc/protoize.c index bd4ac02..3b50836 100644 --- a/gcc/protoize.c +++ b/gcc/protoize.c @@ -57,7 +57,14 @@ Boston, MA 02111-1307, USA. */ #define _POSIX_SOURCE #endif +#ifdef HAVE_VARARGS_H #include +#else +#ifdef HAVE_SYS_VARARGS_H +#include +#endif +#endif + /* On some systems stdio.h includes stdarg.h; we must bring in varargs.h first. */ #include -- cgit v1.1