diff options
author | Wayne Davison <wayned@samba.org> | 2003-01-12 21:49:44 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2003-01-12 21:49:44 +0000 |
commit | 7447419266981a80c4191403df3b84b5b3467f90 (patch) | |
tree | 209935d0ecdd094921ac3c7fd34e927c882b1280 /popt | |
parent | 5216de37a4325207f1d2d3a613f2dcd20d63679e (diff) | |
download | rsync-7447419266981a80c4191403df3b84b5b3467f90.tar.gz rsync-7447419266981a80c4191403df3b84b5b3467f90.tar.bz2 rsync-7447419266981a80c4191403df3b84b5b3467f90.zip |
Use the old kludge of using malloc() if alloca() is missing.
Diffstat (limited to 'popt')
-rw-r--r-- | popt/system.h | 9 |
1 files changed, 8 insertions, 1 deletions
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 |