summaryrefslogtreecommitdiff
path: root/include/asterisk/compat.h
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-11-17 19:29:54 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-11-17 19:29:54 +0000
commit9f7fdc983fea00084e7839140315f0276fb18014 (patch)
tree73afa801c1e8619c8b9fa7267a62ae9937f5a3c0 /include/asterisk/compat.h
parentedc5c82569d384aa269a0770d2c776a95cf292c0 (diff)
if alloca.h is not present, try malloc.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/compat.h')
-rw-r--r--include/asterisk/compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h
index 5d97f4915..ced14fc41 100644
--- a/include/asterisk/compat.h
+++ b/include/asterisk/compat.h
@@ -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 */