From 3ce7399a110e4b6ca349f806e8167d4b28747a13 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 14 Oct 1996 19:22:14 +0000 Subject: [PATCH] Added code for handling the case of using `bison' and having no `alloca'. Alloca is usually never called anyway, so we just use `malloc'. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@850 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftpd/ftpcmd.y | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/appl/ftp/ftpd/ftpcmd.y b/appl/ftp/ftpd/ftpcmd.y index 83d8b191b..91cddd397 100644 --- a/appl/ftp/ftpd/ftpcmd.y +++ b/appl/ftp/ftpd/ftpcmd.y @@ -112,6 +112,12 @@ static void sizecmd (char *); static void toolong (int); static int yylex (void); +/* This is for bison */ + +#if !defined(alloca) && !defined(HAVE_ALLOCA) +#define alloca(x) malloc(x) +#endif + %} %union {