about summary refs log tree commit diff
path: root/argp/argp-parse.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-11-29 07:20:47 +0000
committerUlrich Drepper <drepper@redhat.com>2003-11-29 07:20:47 +0000
commitc5af724c0b214a517f8558887f7a70efcfa2c813 (patch)
tree8b1b822c45022d0bf414d1fc9a41794b17900410 /argp/argp-parse.c
parent0a76d15e91c26aae360749b4eb75559971e4fcfb (diff)
downloadglibc-c5af724c0b214a517f8558887f7a70efcfa2c813.tar.gz
glibc-c5af724c0b214a517f8558887f7a70efcfa2c813.tar.xz
glibc-c5af724c0b214a517f8558887f7a70efcfa2c813.zip
Update.
2003-10-10  Simon Josefsson  <jas@extundo.com>

	* argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
	strchrnul.h, strndup.h (from gnulib).
	* argp/argp-parse.c: Add alloca.h include snippet verbatim from
	Autoconf manual.
	* argp/argp-help.c: Replace alloca.h include snipper with verbatim
	Autoconf manual version.
	* argp/argp.h: Map __restrict to restrict or empty string when
	necessary, copied verbatim from posix/regex.h.
Diffstat (limited to 'argp/argp-parse.c')
-rw-r--r--argp/argp-parse.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/argp/argp-parse.c b/argp/argp-parse.c
index 0b619db0f3..47223dc597 100644
--- a/argp/argp-parse.c
+++ b/argp/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>.
 
@@ -22,6 +22,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>