aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-18 21:24:50 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-18 21:24:50 +0000
commitd8e2b105047b369f7e4f681da52033da4467a1b2 (patch)
tree02170b23a62958a6d3229bd2c73b97b596960997 /main
parent0d1db7fc1523e3be00ed276bb940369763d37d0f (diff)
Only use alloca.h on OSes that have it.
Reported by jontow on IRC in #asterisk-dev git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43230 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/strcompat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/strcompat.c b/main/strcompat.c
index 38643fdd5..f6e3bfa07 100644
--- a/main/strcompat.c
+++ b/main/strcompat.c
@@ -25,9 +25,12 @@
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
-#include <alloca.h>
#include <string.h>
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
+
#ifndef HAVE_STRSEP
char *strsep(char **str, const char *delims)
{