Mercurial > dovecot > core-2.2
changeset 17914:f0015ab0efb1
lib: Compiling fix for FreeBSD
Patch by Eero Hänninen
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 08 Oct 2014 16:28:40 +0300 |
parents | 57aa5f0f9b91 |
children | 10d11d9c0c98 |
files | src/lib/net.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/net.c Wed Oct 08 11:34:05 2014 +0300 +++ b/src/lib/net.c Wed Oct 08 16:28:40 2014 +0300 @@ -155,15 +155,17 @@ #ifdef __FreeBSD__ static int net_connect_ip_full_freebsd(const struct ip_addr *ip, unsigned int port, - const struct ip_addr *my_ip, bool blocking); + const struct ip_addr *my_ip, int sock_type, + bool blocking); static int net_connect_ip_full(const struct ip_addr *ip, unsigned int port, - const struct ip_addr *my_ip, bool blocking) + const struct ip_addr *my_ip, int sock_type, + bool blocking) { int fd, try; for (try = 0;;) { - fd = net_connect_ip_full_freebsd(ip, port, my_ip, blocking); + fd = net_connect_ip_full_freebsd(ip, port, my_ip, sock_type, blocking); if (fd != -1 || ++try == 5 || (errno != EADDRINUSE && errno != EACCES)) break;