Only use alloca.h on OSes that have it.
[asterisk/asterisk.git] / main / strcompat.c
index 38643fd..f6e3bfa 100644 (file)
 #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)
 {