summaryrefslogtreecommitdiff
path: root/src/join.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-10-08 03:38:09 +0000
committerJim Meyering <jim@meyering.net>1995-10-08 03:38:09 +0000
commit3c7699600f242ae69e2391ea2c048506e50ccbaf (patch)
tree2898947e3f4493ca7cbf4e769973b16f480455c7 /src/join.c
parentc8c90bb5321ad239775dd33bf8be919091da2b0d (diff)
downloadcoreutils-3c7699600f242ae69e2391ea2c048506e50ccbaf.tar.xz
Add alloca junk.
Diffstat (limited to 'src/join.c')
-rw-r--r--src/join.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/join.c b/src/join.c
index 56819f6c8..d26b25635 100644
--- a/src/join.c
+++ b/src/join.c
@@ -19,6 +19,20 @@
#include <config.h>
+#ifdef __GNUC__
+#define alloca __builtin_alloca
+#else /* not __GNUC__ */
+#if HAVE_ALLOCA_H
+#include <alloca.h>
+#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