include alloca.h if using bison and not gcc and it exists.

fixes an alloca problem on hpux 10.x
This commit is contained in:
Todd C. Miller
1998-02-17 06:11:28 +00:00
parent 3b9b17cd5b
commit cd226d56c3

View File

@@ -48,6 +48,9 @@ static char rcsid[] = "$Id$";
#if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
#include <malloc.h>
#endif /* HAVE_MALLOC_H && !STDC_HEADERS */
#if defined(YYBISON) && defined(HAVE_ALLOCA_H) && !defined(__GNUC__)
#include <alloca.h>
#endif /* YYBISON && HAVE_ALLOCA_H && !__GNUC__ */
#ifdef HAVE_LSEARCH
#include <search.h>
#endif /* HAVE_LSEARCH */