Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5216de3
)
Use the old kludge of using malloc() if alloca() is missing.
author
Wayne Davison
<wayned@samba.org>
Sun, 12 Jan 2003 21:49:44 +0000
(21:49 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sun, 12 Jan 2003 21:49:44 +0000
(21:49 +0000)
popt/system.h
patch
|
blob
|
blame
|
history
diff --git
a/popt/system.h
b/popt/system.h
index
338be45
..
85daed3
100644
(file)
--- 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