From e8f074fabeb5cba5f682e69fa673a7de7b11a2ab Mon Sep 17 00:00:00 2001 From: Pavel Rochnyack Date: Sun, 14 Oct 2018 17:57:56 +0700 Subject: [PATCH] Fix Solaris builds MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change introduced in df135922b19890047ebf725e6b82cd1c174c6d52 (#2810) causes build failure on Solaris: src/libcollectdclient/server.c: In function ‘server_multicast_join’: src/libcollectdclient/server.c:103:9: error: unknown field ‘imr_address’ specified in initializer .imr_address.s_addr = INADDR_ANY, .imr_multiaddr.s_addr = sa->s_addr, ^ src/libcollectdclient/server.c:103:69: error: ‘struct sockaddr_in’ has no member named ‘S_un’ .imr_address.s_addr = INADDR_ANY, .imr_multiaddr.s_addr = sa->s_addr, ^ src/libcollectdclient/server.c:102:27: error: missing braces around initializer [-Werror=missing-braces] struct ip_mreq mreq = { ^ src/libcollectdclient/server.c:102:27: note: (near initialization for ‘mreq’) Removed this change as not related to WIN32 platform. --- src/libcollectdclient/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcollectdclient/server.c b/src/libcollectdclient/server.c index 26876162..f4e87826 100644 --- a/src/libcollectdclient/server.c +++ b/src/libcollectdclient/server.c @@ -100,7 +100,7 @@ static int server_multicast_join(lcc_listener_t *srv, }; #else struct ip_mreq mreq = { - .imr_address.s_addr = INADDR_ANY, .imr_multiaddr.s_addr = sa->s_addr, + .imr_multiaddr.s_addr = sa->s_addr, }; #endif /* WIN32 */ #endif /* HAVE_STRUCT_IP_MREQN_IMR_IFINDEX */ -- 2.11.0