summaryrefslogtreecommitdiff
path: root/lib/argp-parse.c
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2003-11-29 13:37:46 +0000
committerKarl Berry <karl@freefriends.org>2003-11-29 13:37:46 +0000
commitbdfb51006347f38ceebf47b653d40c151c8e66c3 (patch)
tree5dea4f70bae6857ba84e2f77e78563695bd558b5 /lib/argp-parse.c
parentbf8de99eceb88352fcae7ff8402c9c8aff8eb1f9 (diff)
downloadgnulib-bdfb51006347f38ceebf47b653d40c151c8e66c3.tar.gz
argp update from libc
Diffstat (limited to 'lib/argp-parse.c')
-rw-r--r--lib/argp-parse.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/argp-parse.c b/lib/argp-parse.c
index 2a8b6a0ff0..464a3c01cf 100644
--- a/lib/argp-parse.c
+++ b/lib/argp-parse.c
@@ -1,5 +1,5 @@
/* Hierarchial argument parsing, layered over getopt
- Copyright (C) 1995-2000, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1995-2000, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by Miles Bader <miles@gnu.ai.mit.edu>.
@@ -21,6 +21,21 @@
#include <config.h>
#endif
+/* AIX requires this to be the first thing in the file. */
+#ifndef __GNUC__
+# if HAVE_ALLOCA_H || defined _LIBC
+# include <alloca.h>
+# else
+# ifdef _AIX
+#pragma alloca
+# else
+# ifndef alloca /* predefined by HP cc +Olibcalls */
+char *alloca ();
+# endif
+# endif
+# endif
+#endif
+
#include <stdlib.h>
#include <string.h>
#include <unistd.h>