dovecot-2.2: lib: Compiling fix for FreeBSD
dovecot at dovecot.org
dovecot at dovecot.org
Wed Oct 8 13:29:14 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/f0015ab0efb1
changeset: 17914:f0015ab0efb1
user: Timo Sirainen <tss at iki.fi>
date: Wed Oct 08 16:28:40 2014 +0300
description:
lib: Compiling fix for FreeBSD
Patch by Eero Hänninen
diffstat:
src/lib/net.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r 57aa5f0f9b91 -r f0015ab0efb1 src/lib/net.c
--- 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;
More information about the dovecot-cvs
mailing list