diff options
author | Martin Storsjö <martin@martin.st> | 2010-10-19 07:50:40 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-10-19 07:50:40 +0000 |
commit | 095e5c0b6d41bc57c676cc91ed073407004848f0 (patch) | |
tree | c39c114307efd8b91687e2d1ff37d649bd361a48 /libavformat/sdp.c | |
parent | 44594cc7980a4651aba8ac40c59192c283634748 (diff) | |
download | ffmpeg-095e5c0b6d41bc57c676cc91ed073407004848f0.tar.gz |
sdp: Conditionally compile code using AF_INET6
Should fix compilation in environments unaware of IPv6.
Originally committed as revision 25528 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r-- | libavformat/sdp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 63169a929d..35cbabc60a 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -99,8 +99,10 @@ static int resolve_destination(char *dest_addr, int size, char *type, return 0; getnameinfo(ai->ai_addr, ai->ai_addrlen, dest_addr, size, NULL, 0, NI_NUMERICHOST); +#ifdef AF_INET6 if (ai->ai_family == AF_INET6) av_strlcpy(type, "IP6", type_size); +#endif is_multicast = ff_is_multicast_address(ai->ai_addr); freeaddrinfo(ai); return is_multicast; |