From e8f439631f8cb87a214946842962f82c5b91acb9 Mon Sep 17 00:00:00 2001 From: Limin Wang Date: Sat, 5 Feb 2022 10:02:55 +0800 Subject: [PATCH] avformat/udp: remove IPPROTO_IPV6 macro Signed-off-by: Limin Wang --- libavformat/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;