Use the old kludge of using malloc() if alloca() is missing.
authorWayne Davison <wayned@samba.org>
Sun, 12 Jan 2003 21:49:44 +0000 (21:49 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 12 Jan 2003 21:49:44 +0000 (21:49 +0000)
popt/system.h

index 338be45..85daed3 100644 (file)
 #  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