diff --git a/io_wait.h b/io_wait.h index de7f816a0fe..223ac80b5b5 100644 --- a/io_wait.h +++ b/io_wait.h @@ -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); diff --git a/io_wait_loop.h b/io_wait_loop.h index 191ce76fbce..e0bdec8dce0 100644 --- a/io_wait_loop.h +++ b/io_wait_loop.h @@ -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; } } diff --git a/net/net_tcp.c b/net/net_tcp.c index 49ccd9add73..fe5b5f500c1 100644 --- a/net/net_tcp.c +++ b/net/net_tcp.c @@ -26,6 +26,7 @@ #include #include +#include #include #include #include