Fix building under FreeBSD. Make sure alloca.h exists before including it.
authorJoshua Colp <jcolp@digium.com>
Tue, 11 Sep 2007 13:37:26 +0000 (13:37 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 11 Sep 2007 13:37:26 +0000 (13:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82233 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils/hashtest2.c

index b716849..5242d34 100644 (file)
@@ -34,7 +34,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
+#ifdef HAVE_ALLOCA_H
 #include <alloca.h>
+#endif
 #include <string.h>
 #include <pthread.h>
 #include <sys/stat.h>