aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/udp.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2022-02-05 10:02:55 +0800
committerLimin Wang <lance.lmwang@gmail.com>2022-02-12 08:41:55 +0800
commite8f439631f8cb87a214946842962f82c5b91acb9 (patch)
treef9c4afd3bed899b2bbaf2a8e83b3c9df3432e5e7 /libavformat/udp.c
parent268d00bb87c544c6a89edf3b3f986ed4f639ce7a (diff)
downloadffmpeg-e8f439631f8cb87a214946842962f82c5b91acb9.tar.gz
avformat/udp: remove IPPROTO_IPV6 macro
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r--libavformat/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c
index 143f4b92c0..3b36a4a094 100644
--- a/libavformat/udp.c
+++ b/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;