diff options
Diffstat (limited to 'support/poptconfig.c')
-rw-r--r-- | support/poptconfig.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/support/poptconfig.c b/support/poptconfig.c index 2b44264..4c14ed2 100644 --- a/support/poptconfig.c +++ b/support/poptconfig.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 @@ -13,8 +28,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 "popt-gnome.h" |