From: Wayne Davison Date: Sun, 12 Jan 2003 21:49:44 +0000 (+0000) Subject: Use the old kludge of using malloc() if alloca() is missing. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/7447419266981a80c4191403df3b84b5b3467f90 Use the old kludge of using malloc() if alloca() is missing. --- 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