diff options
Diffstat (limited to 'support/popt.c')
-rw-r--r-- | support/popt.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/support/popt.c b/support/popt.c index 3e8f73e..33f34ba 100644 --- a/support/popt.c +++ b/support/popt.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 @@ -15,8 +30,10 @@ #include <string.h> #include <unistd.h> -#if HAVE_ALLOCA_H -# include <alloca.h> +#ifndef _AIX +# if HAVE_ALLOCA_H +# include <alloca.h> +# endif #endif #include "findme.h" |