aboutsummaryrefslogtreecommitdiff
path: root/argp/argp-help.c
diff options
context:
space:
mode:
Diffstat (limited to 'argp/argp-help.c')
-rw-r--r--argp/argp-help.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/argp/argp-help.c b/argp/argp-help.c
index baa54c91d6..616db9b47c 100644
--- a/argp/argp-help.c
+++ b/argp/argp-help.c
@@ -26,6 +26,25 @@
#include <config.h>
#endif
+#ifndef alloca
+# ifdef __GNUC__
+# define alloca __builtin_alloca
+# define HAVE_ALLOCA 1
+# else
+# if defined HAVE_ALLOCA_H || defined _LIBC
+# include <alloca.h>
+# else
+# ifdef _AIX
+ #pragma alloca
+# else
+# ifndef alloca
+char *alloca ();
+# endif
+# endif
+# endif
+# endif
+#endif
+
#include <stddef.h>
#include <stdlib.h>
#include <string.h>