avformat/udp: remove IPPROTO_IPV6 macro

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
release/5.1
Limin Wang 3 years ago
parent 268d00bb87
commit e8f439631f
  1. 2
      libavformat/udp.c

@ -175,7 +175,7 @@ static int udp_set_multicast_ttl(int sockfd, int mcastTTL,
cmd = IP_MULTICAST_TTL;
break;
#endif
#if defined(IPPROTO_IPV6) && defined(IPV6_MULTICAST_HOPS)
#ifdef IPV6_MULTICAST_HOPS
case AF_INET6:
protocol = IPPROTO_IPV6;
cmd = IPV6_MULTICAST_HOPS;

Loading…
Cancel
Save