Skip to content

Commit

Permalink
Merge pull request #614 from sippy/2.1
Browse files Browse the repository at this point in the history
Fix build on FreeBSD (2.1 branch)
(cherry picked from commit 76a0a56)
  • Loading branch information
razvancrainea committed Aug 25, 2015
1 parent 019494b commit c0a0f12
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions io_wait.h
Expand Up @@ -350,8 +350,13 @@ inline static int io_watch_add( io_wait_h* h,
h->name, prio, h->max_prio);
goto error;
}
#if defined (HAVE_EPOLL)
LM_DBG("[%s] io_watch_add op (%d on %d) (%p, %d, %d, %p,%d), fd_no=%d/%d\n",
h->name,fd,h->epfd, h,fd,type,data,flags,h->fd_no,h->max_fd_no);
#else
LM_DBG("[%s] io_watch_add op (%d) (%p, %d, %d, %p,%d), fd_no=%d/%d\n",
h->name,fd, h,fd,type,data,flags,h->fd_no,h->max_fd_no);
#endif
//fd_array_print;
/* hash sanity check */
e=get_fd_map(h, fd);
Expand Down
2 changes: 1 addition & 1 deletion io_wait_loop.h
Expand Up @@ -214,7 +214,7 @@ inline static int io_wait_loop_kqueue(io_wait_h* h, int t, int repeat)
if (n==-1){
if (errno==EINTR) goto again; /* signal, ignore it */
else{
LM_ERR("[%s] kevent: %s [%d]\n", strerror(errno), errno);
LM_ERR("[%s] kevent: %s [%d]\n", h->name, strerror(errno), errno);
goto error;
}
}
Expand Down
1 change: 1 addition & 0 deletions net/net_tcp.c
Expand Up @@ -26,6 +26,7 @@

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
Expand Down

0 comments on commit c0a0f12

Please sign in to comment.