aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtpproto.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-08-15 10:36:20 +0300
committerMartin Storsjö <martin@martin.st>2013-08-15 15:35:41 +0300
commit4b054a3400f728c54470ee6a1eefe1d82420f6a2 (patch)
tree9a505924324810e0d2eb0a6aa62b9a4a60f2a359 /libavformat/rtpproto.c
parent163a729725c6eb0081b0af41a7279f7d19aee86e (diff)
downloadffmpeg-4b054a3400f728c54470ee6a1eefe1d82420f6a2.tar.gz
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>
Diffstat (limited to 'libavformat/rtpproto.c')
-rw-r--r--libavformat/rtpproto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c
index 4cc69fbf0f..0f31539ebe 100644
--- a/libavformat/rtpproto.c
+++ b/libavformat/rtpproto.c
@@ -118,7 +118,7 @@ static int compare_addr(const struct sockaddr_storage *a,
((const struct sockaddr_in *)b)->sin_addr.s_addr);
}
-#if defined(IPPROTO_IPV6)
+#if HAVE_STRUCT_SOCKADDR_IN6
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_b = ((const struct sockaddr_in6 *)b)->sin6_addr.s6_addr;