From: foobar Date: Sun, 9 Dec 2001 23:43:20 +0000 (+0000) Subject: This was needed afterall. Without this Apache segfaulted when accessing PHP scripts. X-Git-Tag: ChangeLog~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b81440b7639456bdf67bc0177785c4fbbbd543a;p=php This was needed afterall. Without this Apache segfaulted when accessing PHP scripts. --- 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