From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thiemo Seufer To: binutils@sources.redhat.com Subject: [PATCH] Include alloca.h for bfd Date: Tue, 21 Aug 2001 12:09:00 -0000 Message-id: <20010821210909.E30301@rembrandt.csv.ica.uni-stuttgart.de> X-SW-Source: 2001-08/msg00477.html Hi All, this checks for inclusion of alloca.h, which is required on IRIX6.5 to compile e.g. linker.c. Thiemo 2001-08-21 Thiemo Seufer /bfd/ChangeLog * sysdep.h (HAVE_ALLOCA): Check for inclusion of alloca.h, needed on irix6. diff -BurpNX /bigdisk/src/binutils-exclude src-orig/bfd/sysdep.h src/bfd/sysdep.h --- src-orig/bfd/sysdep.h Wed Mar 14 17:02:30 2001 +++ src/bfd/sysdep.h Mon Aug 20 23:31:03 2001 @@ -26,6 +26,18 @@ Foundation, Inc., 59 Temple Place - Suit #include "config.h" +#ifdef HAVE_ALLOCA +#ifdef HAVE_ALLOCA_H +#include +#else +#ifdef NEED_DECLARATION_ALLOCA +extern PTR alloca (); +#endif +#endif +#else +#error "alloca() is required but not available." +#endif + #ifdef HAVE_STDDEF_H #include #endif