From 7447419266981a80c4191403df3b84b5b3467f90 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 12 Jan 2003 21:49:44 +0000 Subject: [PATCH] Use the old kludge of using malloc() if alloca() is missing. --- popt/system.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/popt/system.h b/popt/system.h index 338be45b..85daed3b 100644 --- a/popt/system.h +++ b/popt/system.h @@ -41,8 +41,15 @@ # ifdef _AIX #pragma alloca # else -# ifndef alloca /* predefined by HP cc +Olibcalls */ +# if HAVE_ALLOCA +# ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); +# endif +# else +# ifdef alloca +# undef alloca +# endif +# define alloca(sz) malloc(sz) /* Kludge this for now */ # endif # endif # endif -- 2.34.1