diff options
author | foobar <sniper@php.net> | 2001-12-09 23:43:20 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2001-12-09 23:43:20 +0000 |
commit | 9b81440b7639456bdf67bc0177785c4fbbbd543a (patch) | |
tree | 354bf8299e05ea6c940b55dec8e2a2a027fe17de /TSRM | |
parent | f22f8adedd9da3969f0ce4ba09efc3c643d99930 (diff) | |
download | php-git-9b81440b7639456bdf67bc0177785c4fbbbd543a.tar.gz |
This was needed afterall. Without this Apache segfaulted when accessing PHP scripts.
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/tsrm_config_common.h | 15 |
1 files changed, 13 insertions, 2 deletions
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 <malloc.h> #endif -#if HAVE_ALLOCA_H -#include <alloca.h> +/* 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 #if HAVE_UNISTD_H |