From: Mike Frysinger Date: Sat, 16 Apr 2005 04:06:14 +0000 (-0000) Subject: bernhardf reports with Bug 210: X-Git-Tag: 1_1_0~1081 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a9ae74d25bec8208d56fc6619c610f0d6849412c;p=oweals%2Fbusybox.git 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. --- diff --git a/scripts/config/zconf.tab.c_shipped b/scripts/config/zconf.tab.c_shipped index a5f69a026..bc2225fb4 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__