From fe0379fa11a63ea8eac7e0fa70cfdbae40a7aa15 Mon Sep 17 00:00:00 2001 From: Jose Santiago Date: Tue, 15 Aug 2023 11:49:03 -0500 Subject: [PATCH] Fix the build for target without IP_ADD_SOURCE_MEMBERSHIP. --- 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;