From a9ae74d25bec8208d56fc6619c610f0d6849412c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 16 Apr 2005 04:06:14 +0000 Subject: [PATCH] bernhardf reports with Bug 210: For certain non-gcc compilers, alloca_h is defined (included) but there, no alloca() is declared. Fallback to malloc if _ALLOCA_H is defined but still, there is no alloca() in the included _ALLOCA_H. --- scripts/config/zconf.tab.c_shipped | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config/zconf.tab.c_shipped b/scripts/config/zconf.tab.c_shipped index a5f69a0..bc2225f 100644 --- a/scripts/config/zconf.tab.c_shipped +++ b/scripts/config/zconf.tab.c_shipped @@ -227,7 +227,7 @@ typedef union YYSTYPE { # define YYSTACK_ALLOC alloca # else # ifndef YYSTACK_USE_ALLOCA -# if defined (alloca) || defined (_ALLOCA_H) +# if defined (alloca) || (defined (_ALLOCA_H) && defined (__GNUC__)) # define YYSTACK_ALLOC alloca # else # ifdef __GNUC__ -- 2.7.4