From e9eb8b330a25b443b3e009091616ffa8aa30752b Mon Sep 17 00:00:00 2001 From: Jose Santiago Date: Wed, 16 Aug 2023 01:20:33 -0500 Subject: [PATCH] [apps] Fix the build for target without IP_ADD_SOURCE_MEMBERSHIP (#2779). --- apps/transmitmedia.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/transmitmedia.cpp b/apps/transmitmedia.cpp index 87899e01d..8509927d3 100644 --- a/apps/transmitmedia.cpp +++ b/apps/transmitmedia.cpp @@ -848,7 +848,6 @@ class UdpCommon if (is_multicast) { - ip_mreq_source mreq_ssm; ip_mreq mreq; sockaddr_any maddr (AF_INET); int opt_name; @@ -872,6 +871,7 @@ class UdpCommon if (attr.count("source")) { #ifdef IP_ADD_SOURCE_MEMBERSHIP + ip_mreq_source mreq_ssm; /* this is an ssm. we need to use the right struct and opt */ opt_name = IP_ADD_SOURCE_MEMBERSHIP; mreq_ssm.imr_multiaddr.s_addr = sadr.sin.sin_addr.s_addr;