fix some build issues on FreeBSD (issue #6614)
authorRussell Bryant <russell@russellbryant.com>
Tue, 28 Feb 2006 19:22:25 +0000 (19:22 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 28 Feb 2006 19:22:25 +0000 (19:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11407 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c
jitterbuf.c

index 4562ae2..627d287 100644 (file)
@@ -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;
index d6e5f63..bf9740d 100644 (file)
@@ -30,6 +30,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include <sys/types.h>
 #include "asterisk.h"
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")