alloca-opt: Fix build error on AIX (regression from 2020-07-05).

* gnulib-local/lib/alloca.in.h: Don't include <alloca.h>, since it would be a
recursive include of the same file.
This commit is contained in:
Bruno Haible 2020-07-06 21:31:54 +02:00
parent 1783cebab5
commit 208c508181

View File

@ -47,7 +47,10 @@
# ifdef __GNUC__
# define alloca __builtin_alloca
# else
# ifdef _MSC_VER
# if defined _AIX
#pragma alloca
/* Alternatively: #define alloca __alloca, works as well. */
# elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
# elif defined __DECC && defined __VMS
@ -62,25 +65,17 @@ void *_alloca (unsigned short);
# elif defined __MVS__
# include <stdlib.h>
# else
# if HAVE_ALLOCA_H
# include <alloca.h>
# else
# ifdef _AIX
#pragma alloca
# else
# ifdef __hpux /* This section must match that of bison generated files. */
# ifdef __cplusplus
# ifdef __hpux /* This section must match that of bison generated files. */
# ifdef __cplusplus
extern "C" void *alloca (unsigned int);
# else /* not __cplusplus */
# else /* not __cplusplus */
extern void *alloca ();
# endif /* not __cplusplus */
# else /* not __hpux */
# ifndef alloca
# endif /* not __cplusplus */
# else /* not __hpux */
# ifndef alloca
extern char *alloca ();
# endif
# endif /* __hpux */
# endif
# endif
# endif /* __hpux */
# endif
# endif
#endif