Fix building on FreeBSD by including/not including some headers.
authorJoshua Colp <jcolp@digium.com>
Mon, 12 Nov 2007 13:26:45 +0000 (13:26 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 12 Nov 2007 13:26:45 +0000 (13:26 +0000)
(closes issue #11218)
Reported by: ys
Patches:
      trunk89169.diff uploaded by ys (license 281)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89177 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_unistim.c
utils/hashtest.c

index 9909dea..37a2f59 100644 (file)
@@ -41,6 +41,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include <unistd.h>
 #include <sys/socket.h>
 #include <sys/ioctl.h>
+#include <sys/stat.h>
 #include <net/if.h>
 #include <errno.h>
 #include <stdlib.h>
index aa359ca..80362a8 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>