From 8880330c4124c90bf9ea9647ee723f9643b3bcfa Mon Sep 17 00:00:00 2001 From: emanuele-f Date: Mon, 8 Jul 2019 14:13:26 +0200 Subject: [PATCH] Windows compilation fix --- edge_utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edge_utils.c b/edge_utils.c index e2966bf..11ffcd1 100644 --- a/edge_utils.c +++ b/edge_utils.c @@ -577,6 +577,7 @@ static ssize_t sendto_sock(int fd, const void * buf, /* Bind eee->udp_multicast_sock to multicast group */ static void check_join_multicast_group(n2n_edge_t *eee) { +#ifndef SKIP_MULTICAST_PEERS_DISCOVERY if(!eee->multicast_joined) { struct ip_mreq mreq; mreq.imr_multiaddr.s_addr = inet_addr(N2N_MULTICAST_GROUP); @@ -595,6 +596,7 @@ static void check_join_multicast_group(n2n_edge_t *eee) { eee->multicast_joined = 1; } } +#endif } /* ************************************** */