Skip to content

Commit

Permalink
[apps] Fix the build for target without IP_ADD_SOURCE_MEMBERSHIP (#2779
Browse files Browse the repository at this point in the history
…).
  • Loading branch information
jlsantiago0 committed Aug 16, 2023
1 parent 033dc9f commit e9eb8b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/transmitmedia.cpp
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit e9eb8b3

Please sign in to comment.