From 751d155b9614bd9643b171675f8cb775062dfc0a Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Fri, 7 Dec 2001 17:37:00 +0000 Subject: [PATCH] Jani's AIX fixes --- TSRM/tsrm_config_common.h | 15 +++++++++++++-- 1 file 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 #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 -- 2.40.0