Fix building under FreeBSD. Make sure alloca.h exists before including it.
[asterisk/asterisk.git] / utils / hashtest2.c
index b716849..5242d34 100644 (file)
@@ -34,7 +34,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
+#ifdef HAVE_ALLOCA_H
 #include <alloca.h>
 #include <alloca.h>
+#endif
 #include <string.h>
 #include <pthread.h>
 #include <sys/stat.h>
 #include <string.h>
 #include <pthread.h>
 #include <sys/stat.h>