diff options
Diffstat (limited to 'support/findme.c')
-rw-r--r-- | support/findme.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/support/findme.c b/support/findme.c index 4ba4950e..9c949b8b 100644 --- a/support/findme.c +++ b/support/findme.c @@ -2,6 +2,21 @@ file accompanying popt source distributions, available from ftp://ftp.redhat.com/pub/code/popt */ +/* AIX requires this to be the first thing in the file. */ +#ifndef __GNUC__ +# if HAVE_ALLOCA_H +# include <alloca.h> +# else +# ifdef _AIX +# pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +char *alloca (); +# endif +# endif +# endif +#endif + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -16,8 +31,10 @@ #include <libc.h> #endif -#if HAVE_ALLOCA_H -# include <alloca.h> +#ifndef _AIX +# if HAVE_ALLOCA_H +# include <alloca.h> +# endif #endif #include "findme.h" |