From: Sterling Hughes Date: Fri, 7 Dec 2001 17:37:00 +0000 (+0000) Subject: Jani's AIX fixes X-Git-Tag: ChangeLog~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=751d155b9614bd9643b171675f8cb775062dfc0a;p=php Jani's AIX fixes --- diff --git a/TSRM/tsrm_config_common.h b/TSRM/tsrm_config_common.h index 8b80f80121..add5a50fa5 100644 --- a/TSRM/tsrm_config_common.h +++ b/TSRM/tsrm_config_common.h @@ -16,8 +16,19 @@ #include #endif -#if HAVE_ALLOCA_H -#include +/* AIX requires this to be the first thing in the file. */ +#ifndef __GNUC__ +# if HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +char *alloca (); +# endif +# endif +# endif #endif #if HAVE_UNISTD_H