]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
if alloca.h is not present, try malloc.h
authorLuigi Rizzo <rizzo@icir.org>
Sat, 17 Nov 2007 19:29:54 +0000 (19:29 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Sat, 17 Nov 2007 19:29:54 +0000 (19:29 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89392 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/compat.h

index 5d97f4915f597553ddc668c7ebfd107559731627..ced14fc41bcc806df512399493c4f874e12b93a0 100644 (file)
@@ -53,6 +53,8 @@
 
 #ifdef HAVE_ALLOCA_H
 #include <alloca.h>    /* not necessarily present - could be in stdlib */
+#elif defined(HAVE_ALLOCA)
+#include <malloc.h>    /* see if it is here... */
 #endif
 
 #include <stdio.h>     /* this is always present */