OSDN Git Service

rtpproto: Check the right feature detection macro
authorMartin Storsjö <martin@martin.st>
Thu, 15 Aug 2013 07:36:20 +0000 (10:36 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 15 Aug 2013 12:35:41 +0000 (15:35 +0300)
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>
libavformat/rtpproto.c

index 4cc69fb..0f31539 100644 (file)
@@ -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;