Mercurial > libavformat.hg
changeset 6478:1e6ebac87d44 libavformat
Check for the IPPROTO_IPV6 define before using it
This fixes building on FreeBSD in some configurations, if the IPv6 multicast
structs are available, but IPPROTO_IPV6 isn't defined.
author | mstorsjo |
---|---|
date | Mon, 20 Sep 2010 06:38:40 +0000 |
parents | 2697448798ee |
children | 3e7384f85f1d |
files | udp.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/udp.c Wed Sep 15 17:39:25 2010 +0000 +++ b/udp.c Mon Sep 20 06:38:40 2010 +0000 @@ -96,7 +96,7 @@ } } #endif -#if HAVE_STRUCT_IPV6_MREQ +#if HAVE_STRUCT_IPV6_MREQ && defined(IPPROTO_IPV6) if (addr->sa_family == AF_INET6) { struct ipv6_mreq mreq6; @@ -125,7 +125,7 @@ } } #endif -#if HAVE_STRUCT_IPV6_MREQ +#if HAVE_STRUCT_IPV6_MREQ && defined(IPPROTO_IPV6) if (addr->sa_family == AF_INET6) { struct ipv6_mreq mreq6;