From 15ba2de36748e275f1fe4628ca6f45dafd822974 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 19 Aug 2015 07:33:48 +0200 Subject: [PATCH] ctdb: Fix the build on FreeBSD 10.1 We get sockaddr_in directly in parse_ipv4 Bug: https://bugzilla.samba.org/show_bug.cgi?id=11465 Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme (cherry picked from commit 1d79f6c9e5423202d5275727e1ddc60acce65b4c) --- ctdb/common/system_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/common/system_util.c b/ctdb/common/system_util.c index 1ae0bae..663df6e 100644 --- a/ctdb/common/system_util.c +++ b/ctdb/common/system_util.c @@ -157,7 +157,7 @@ bool parse_ipv4(const char *s, unsigned port, struct sockaddr_in *sin) } #ifdef HAVE_SOCK_SIN_LEN - sin->ip.sin_len = sizeof(*sin); + sin->sin_len = sizeof(*sin); #endif return true; } -- 2.1.0