aboutsummaryrefslogtreecommitdiffstats
path: root/popt
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2003-01-12 21:49:44 +0000
committerWayne Davison <wayned@samba.org>2003-01-12 21:49:44 +0000
commit7447419266981a80c4191403df3b84b5b3467f90 (patch)
tree209935d0ecdd094921ac3c7fd34e927c882b1280 /popt
parent5216de37a4325207f1d2d3a613f2dcd20d63679e (diff)
downloadandroid_external_rsync-7447419266981a80c4191403df3b84b5b3467f90.tar.gz
android_external_rsync-7447419266981a80c4191403df3b84b5b3467f90.tar.bz2
android_external_rsync-7447419266981a80c4191403df3b84b5b3467f90.zip
Use the old kludge of using malloc() if alloca() is missing.
Diffstat (limited to 'popt')
-rw-r--r--popt/system.h9
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