mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
rtpproto: Check the right feature detection macro
IPPROTO_IPV6 is unrelated here (it's only used in udp.c for multicast sockopts), check for support for the sockaddr_in6 struct itself. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
163a729725
commit
4b054a3400
@ -118,7 +118,7 @@ static int compare_addr(const struct sockaddr_storage *a,
|
|||||||
((const struct sockaddr_in *)b)->sin_addr.s_addr);
|
((const struct sockaddr_in *)b)->sin_addr.s_addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(IPPROTO_IPV6)
|
#if HAVE_STRUCT_SOCKADDR_IN6
|
||||||
if (a->ss_family == AF_INET6) {
|
if (a->ss_family == AF_INET6) {
|
||||||
const uint8_t *s6_addr_a = ((const struct sockaddr_in6 *)a)->sin6_addr.s6_addr;
|
const uint8_t *s6_addr_a = ((const struct sockaddr_in6 *)a)->sin6_addr.s6_addr;
|
||||||
const uint8_t *s6_addr_b = ((const struct sockaddr_in6 *)b)->sin6_addr.s6_addr;
|
const uint8_t *s6_addr_b = ((const struct sockaddr_in6 *)b)->sin6_addr.s6_addr;
|
||||||
|
Loading…
Reference in New Issue
Block a user