From: Jim Meyering Date: Sun, 8 Oct 1995 03:38:09 +0000 (+0000) Subject: Add alloca junk. X-Git-Tag: v4.5.1~12339 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c7699600f242ae69e2391ea2c048506e50ccbaf;p=thirdparty%2Fcoreutils.git Add alloca junk. --- diff --git a/src/join.c b/src/join.c index 56819f6c86..d26b25635a 100644 --- a/src/join.c +++ b/src/join.c @@ -19,6 +19,20 @@ #include +#ifdef __GNUC__ +#define alloca __builtin_alloca +#else /* not __GNUC__ */ +#if HAVE_ALLOCA_H +#include +#else /* not HAVE_ALLOCA_H */ +#ifdef _AIX + #pragma alloca +#else /* not _AIX */ +char *alloca (); +#endif /* not _AIX */ +#endif /* not HAVE_ALLOCA_H */ +#endif /* not __GNUC__ */ + /* Get isblank from GNU libc. */ #define _GNU_SOURCE