diff options
author | Jason Parker <jparker@digium.com> | 2006-09-18 21:24:50 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2006-09-18 21:24:50 +0000 |
commit | 998ac5cab16749e6a84f41134da5dea83cae0bae (patch) | |
tree | 02170b23a62958a6d3229bd2c73b97b596960997 | |
parent | 42a56b7a5aeddee117b436a63b1e0fd61912b56e (diff) |
Only use alloca.h on OSes that have it.
Reported by jontow on IRC in #asterisk-dev
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43230 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/strcompat.c | 5 |
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) { |