aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-28 19:22:25 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-28 19:22:25 +0000
commit5767fde7d7fc9a5aca76756cc5bdf1ad33da16c6 (patch)
tree0262028667e42b8a23b9effbc315fb1aa56e067f
parente1fe9b068367f85e5e91615491ac2dd8c13eb8e7 (diff)
fix some build issues on FreeBSD (issue #6614)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@11407 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_iax2.c3
-rw-r--r--jitterbuf.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 4562ae2e9..627d287da 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -6486,9 +6486,10 @@ static int socket_read(int *id, int fd, short events, void *cbdata)
{
struct iax2_thread *thread;
socklen_t len;
- thread = find_idle_thread();
time_t t;
static time_t last_errtime=0;
+
+ thread = find_idle_thread();
if (thread) {
len = sizeof(thread->iosin);
thread->iofd = fd;
diff --git a/jitterbuf.c b/jitterbuf.c
index d6e5f6365..bf9740d5b 100644
--- a/jitterbuf.c
+++ b/jitterbuf.c
@@ -30,6 +30,7 @@
#include <stdlib.h>
#include <string.h>
+#include <sys/types.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")