diff options
| author | Sterling Hughes <sterling@php.net> | 2001-12-07 17:37:00 +0000 |
|---|---|---|
| committer | Sterling Hughes <sterling@php.net> | 2001-12-07 17:37:00 +0000 |
| commit | 751d155b9614bd9643b171675f8cb775062dfc0a (patch) | |
| tree | 5f12320e3e99ed0c229f8261c4bf5824025bb7bb | |
| parent | ff3774d1eee02c7a06c6c6d672ac2e989b9f68e8 (diff) | |
| download | php-git-751d155b9614bd9643b171675f8cb775062dfc0a.tar.gz | |
Jani's AIX fixes
| -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 |
